diff options
author | 2017-11-10 19:04:03 -0500 | |
---|---|---|
committer | 2017-11-10 19:04:03 -0500 | |
commit | 80e568c5e95b103ded1e19985f73a864b739cf04 (patch) | |
tree | 38db3cfee885af4f2188bc9b0d37a67e3ae390c2 /modules/textadept/menu.lua | |
parent | 6a784e47193042e2522dc54e0d98701c109573fb (diff) | |
download | textadept-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.lua | 9 |
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}, |