From a19cfb4f8037e0ea67e874435cc46e5ad1926bd8 Mon Sep 17 00:00:00 2001 From: Guldoman Date: Wed, 14 Sep 2022 04:29:52 +0200 Subject: [PATCH] Strictly limit find/replace commands to `core.docview` (#1108) Without this, find/replace commands applied to the `CommandView` too, with buggy results. --- data/core/commands/findreplace.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/core/commands/findreplace.lua b/data/core/commands/findreplace.lua index 9bab5075..3966dbf4 100644 --- a/data/core/commands/findreplace.lua +++ b/data/core/commands/findreplace.lua @@ -200,7 +200,7 @@ command.add(has_unique_selection, { ["find-replace:select-add-all"] = function() select_add_next(true) end }) -command.add("core.docview", { +command.add("core.docview!", { ["find-replace:find"] = function() find("Find Text", function(doc, line, col, text, case_sensitive, find_regex, find_reverse) local opt = { wrap = true, no_case = not case_sensitive, regex = find_regex, reverse = find_reverse }