aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2020-07-25 23:59:48 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2020-07-25 23:59:48 -0400
commit55ef1433f61f8a40f123cd9e70255a3cbf9b2d9d (patch)
treee2a2b2351499eb983713b5dfc432224ff0f2e079 /modules/textadept
parent27f86d967cef13620101cff60a82c65302ee1877 (diff)
downloadtextadept-55ef1433f61f8a40f123cd9e70255a3cbf9b2d9d.tar.gz
textadept-55ef1433f61f8a40f123cd9e70255a3cbf9b2d9d.zip
Fixed selected word highlighting with multiple selections.
Diffstat (limited to 'modules/textadept')
-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 c10f77c0..549f8ec2 100644
--- a/modules/textadept/editing.lua
+++ b/modules/textadept/editing.lua
@@ -202,7 +202,7 @@ events.connect(events.UPDATE_UI, function(updated)
local s, e = buffer.selection_start, buffer.selection_end
if s ~= e then clear_highlighted_words() end
if not buffer:is_range_word(s, e) then return end
- word = buffer:get_sel_text()
+ word = buffer:text_range(s, e)
if word:find(string.format('[^%s]', buffer.word_chars)) then return end
else
return