Strictly limit find/replace commands to core.docview (#1108)

Without this, find/replace commands applied to the `CommandView` too,
with buggy results.
This commit is contained in:
Guldoman
2022-09-13 22:29:52 -04:00
committed by GitHub
parent bead59a898
commit a19cfb4f80
+1 -1
View File
@@ -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 }