aboutsummaryrefslogtreecommitdiff
path: root/core/init.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2017-11-18 21:45:20 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2017-11-18 21:45:20 -0500
commit9526d491e7c01e74bbcec0fe25fb13384f9036c9 (patch)
treeae1d15c7659424e55a60e896beffeb4a4b2d3879 /core/init.lua
parenta8a0f88ae32effeb328b71903b0976129065c360 (diff)
downloadtextadept-9526d491e7c01e74bbcec0fe25fb13384f9036c9.tar.gz
textadept-9526d491e7c01e74bbcec0fe25fb13384f9036c9.zip
Enforce extra argument to `buffer:brace_match()` introduced in Scintilla 3.7.0.
Diffstat (limited to 'core/init.lua')
-rw-r--r--core/init.lua10
1 files changed, 0 insertions, 10 deletions
diff --git a/core/init.lua b/core/init.lua
index 327068f3..bcecd2e8 100644
--- a/core/init.lua
+++ b/core/init.lua
@@ -56,16 +56,6 @@ local function text_range(buffer, start_pos, end_pos)
end
events.connect(events.BUFFER_NEW, function() buffer.text_range = text_range end)
-local _brace_match
--- Compatibility function for Scintilla's current `buffer:brace_match()`, which
--- has an extra, required `0` parameter (introduced in 3.7.0).
--- Documentation is in core/.buffer.luadoc.
-local function brace_match(buffer, pos) return _brace_match(buffer, pos, 0) end
-events.connect(events.BUFFER_NEW, function()
- if not _brace_match then _brace_match = buffer.brace_match end
- buffer.brace_match = brace_match
-end)
-
--[[ This comment is for LuaDoc.
---
-- Extends Lua's _G table to provide extra functions and fields for Textadept.