diff options
author | rxi <rxi@users.noreply.github.com> | 2020-04-27 08:25:00 +0100 |
---|---|---|
committer | rxi <rxi@users.noreply.github.com> | 2020-04-27 08:25:00 +0100 |
commit | 7f5e74a6bc62b660907641775e42547ea35e40d3 (patch) | |
tree | 927c6c1f44414872fcda71d31c4afda078f9f5d0 /plugins | |
parent | 1cb6883c85310b4f1b93bd6816b8e9f334f61c91 (diff) | |
download | lite-xl-plugins-7f5e74a6bc62b660907641775e42547ea35e40d3.tar.gz lite-xl-plugins-7f5e74a6bc62b660907641775e42547ea35e40d3.zip |
Made spellcheck plugin put caret at *end* of word when selecting
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/spellcheck.lua | 2 |
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) |