diff options
author | 2020-07-25 23:59:48 -0400 | |
---|---|---|
committer | 2020-07-25 23:59:48 -0400 | |
commit | 55ef1433f61f8a40f123cd9e70255a3cbf9b2d9d (patch) | |
tree | e2a2b2351499eb983713b5dfc432224ff0f2e079 /modules | |
parent | 27f86d967cef13620101cff60a82c65302ee1877 (diff) | |
download | textadept-55ef1433f61f8a40f123cd9e70255a3cbf9b2d9d.tar.gz textadept-55ef1433f61f8a40f123cd9e70255a3cbf9b2d9d.zip |
Fixed selected word highlighting with multiple selections.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/textadept/editing.lua | 2 |
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 |