From 3f54cb91f2f5aa500fdb5ce5d48665ba8196a50c Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Mon, 8 Oct 2018 10:43:33 -0400 Subject: Fixed error when performing "select enclosed" on a non-ASCII character. --- modules/textadept/editing.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') 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 -- cgit v1.2.3