diff options
author | 2014-05-28 01:14:20 -0400 | |
---|---|---|
committer | 2014-05-28 01:14:20 -0400 | |
commit | 7cb94f5f7d67214bd2514365871fe5438ba89d07 (patch) | |
tree | 5d2192c7a03a2a5885d1f12b4124d718f69afd52 /modules/textadept | |
parent | da4acc0c6f031a5c33efdca3ab2ee7b1f0db5a2b (diff) | |
download | textadept-7cb94f5f7d67214bd2514365871fe5438ba89d07.tar.gz textadept-7cb94f5f7d67214bd2514365871fe5438ba89d07.zip |
Fixed bug in highlighting a word from its end; modules/textadept/editing.lua
Diffstat (limited to 'modules/textadept')
-rw-r--r-- | modules/textadept/editing.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/textadept/editing.lua b/modules/textadept/editing.lua index 1ba9bd9e..c67542ba 100644 --- a/modules/textadept/editing.lua +++ b/modules/textadept/editing.lua @@ -476,7 +476,8 @@ function M.highlight_word() local buffer = buffer local s, e = buffer.selection_start, buffer.selection_end if s == e then - s, e = buffer:word_start_position(s, true), buffer:word_end_position(s) + s = buffer:word_start_position(s, true) + e = buffer:word_end_position(s, true) end if s == e then return end local word = buffer:text_range(s, e) |