aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrxi <rxi@users.noreply.github.com>2020-04-27 08:25:00 +0100
committerrxi <rxi@users.noreply.github.com>2020-04-27 08:25:00 +0100
commit7f5e74a6bc62b660907641775e42547ea35e40d3 (patch)
tree927c6c1f44414872fcda71d31c4afda078f9f5d0
parent1cb6883c85310b4f1b93bd6816b8e9f334f61c91 (diff)
downloadlite-xl-plugins-7f5e74a6bc62b660907641775e42547ea35e40d3.tar.gz
lite-xl-plugins-7f5e74a6bc62b660907641775e42547ea35e40d3.zip
Made spellcheck plugin put caret at *end* of word when selecting
-rw-r--r--plugins/spellcheck.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/spellcheck.lua b/plugins/spellcheck.lua
index e532012..33754ac 100644
--- a/plugins/spellcheck.lua
+++ b/plugins/spellcheck.lua
@@ -154,7 +154,7 @@ command.add("core.docview", {
-- select word and init replacement selector
local label = string.format("Replace \"%s\" With", word)
- doc:set_selection(line, s, line, e + 1)
+ doc:set_selection(line, e + 1, line, s)
core.command_view:enter(label, function(text, item)
text = item and item.text or text
doc:replace(function() return text end)