aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/editing.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2018-10-08 10:43:33 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2018-10-08 10:43:33 -0400
commit3f54cb91f2f5aa500fdb5ce5d48665ba8196a50c (patch)
tree382b58fdab66fa5356eddf7d663b89ca89f29c49 /modules/textadept/editing.lua
parent63fcfbdfedbb388a124c623af0430fdc1ee7909d (diff)
downloadtextadept-3f54cb91f2f5aa500fdb5ce5d48665ba8196a50c.tar.gz
textadept-3f54cb91f2f5aa500fdb5ce5d48665ba8196a50c.zip
Fixed error when performing "select enclosed" on a non-ASCII character.
Diffstat (limited to 'modules/textadept/editing.lua')
-rw-r--r--modules/textadept/editing.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/textadept/editing.lua b/modules/textadept/editing.lua
index 27af2eca..b8d7e341 100644
--- a/modules/textadept/editing.lua
+++ b/modules/textadept/editing.lua
@@ -435,8 +435,8 @@ function M.select_enclosed(left, right)
local char_at, style_at = buffer.char_at, buffer.style_at
while s >= 0 do
local match = M.auto_pairs[char_at[s]]
- left, right = string.char(char_at[s]), match
if match then
+ left, right = string.char(char_at[s]), match
if buffer:brace_match(s, 0) >= buffer.selection_end - 1 then
e = buffer:brace_match(s, 0)
break