Fix doc selection in findreplace

Use `last_view` if `active_view` is `CommandView`.
This commit is contained in:
Guldoman
2021-10-10 01:11:40 +02:00
parent 1976facaf1
commit af925d603b
+2 -1
View File
@@ -14,7 +14,8 @@ local find_regex = config.find_regex or false
local found_expression
local function doc()
return core.active_view:is(DocView) and core.active_view.doc or last_view.doc
local is_DocView = core.active_view:is(DocView) and not core.active_view:is(CommandView)
return is_DocView and core.active_view.doc or last_view.doc
end
local function get_find_tooltip()