aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/menu.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2017-11-10 19:04:03 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2017-11-10 19:04:03 -0500
commit80e568c5e95b103ded1e19985f73a864b739cf04 (patch)
tree38db3cfee885af4f2188bc9b0d37a67e3ae390c2 /modules/textadept/menu.lua
parent6a784e47193042e2522dc54e0d98701c109573fb (diff)
downloadtextadept-80e568c5e95b103ded1e19985f73a864b739cf04.tar.gz
textadept-80e568c5e95b103ded1e19985f73a864b739cf04.zip
Removed `textadept.editing.match_brace()`.
"Select to Matching Brace" has been moved into `textadept.editing.select_enclosed()`, which now automatically determines what to select between if no arguments are given.
Diffstat (limited to 'modules/textadept/menu.lua')
-rw-r--r--modules/textadept/menu.lua9
1 files changed, 5 insertions, 4 deletions
diff --git a/modules/textadept/menu.lua b/modules/textadept/menu.lua
index ad23552f..7b2f2a81 100644
--- a/modules/textadept/menu.lua
+++ b/modules/textadept/menu.lua
@@ -90,7 +90,10 @@ local default_menubar = {
end},
{_L['Select _All'], buffer.select_all},
SEPARATOR,
- {_L['_Match Brace'], textadept.editing.match_brace},
+ {_L['_Match Brace'], function()
+ local match_pos = buffer:brace_match(buffer.current_pos)
+ if match_pos >= 0 then buffer:goto_pos(match_pos) end
+ end},
{_L['Complete _Word'], function()
textadept.editing.autocomplete('word')
end},
@@ -103,9 +106,7 @@ local default_menubar = {
end},
{
title = _L['_Select'],
- {_L['Select to _Matching Brace'], function()
- textadept.editing.match_brace('select')
- end},
+ {_L['Select to _Matching Brace'], sel_enc},
{_L['Select between _XML Tags'], function() sel_enc('>', '<') end},
{_L['Select in XML _Tag'], function() sel_enc('<', '>') end},
{_L['Select in _Single Quotes'], function() sel_enc("'", "'") end},