From 7f5e74a6bc62b660907641775e42547ea35e40d3 Mon Sep 17 00:00:00 2001 From: rxi Date: Mon, 27 Apr 2020 08:25:00 +0100 Subject: Made spellcheck plugin put caret at *end* of word when selecting --- plugins/spellcheck.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/spellcheck.lua') 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) -- cgit v1.2.3