aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2014-05-28 01:14:20 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2014-05-28 01:14:20 -0400
commit7cb94f5f7d67214bd2514365871fe5438ba89d07 (patch)
tree5d2192c7a03a2a5885d1f12b4124d718f69afd52 /modules
parentda4acc0c6f031a5c33efdca3ab2ee7b1f0db5a2b (diff)
downloadtextadept-7cb94f5f7d67214bd2514365871fe5438ba89d07.tar.gz
textadept-7cb94f5f7d67214bd2514365871fe5438ba89d07.zip
Fixed bug in highlighting a word from its end; modules/textadept/editing.lua
Diffstat (limited to 'modules')
-rw-r--r--modules/textadept/editing.lua3
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)