Allowed find to function across different views.

This commit is contained in:
Adam Harrison 2021-07-15 18:29:48 -04:00
parent a218a95c45
commit 6330f4d596
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ local case_sensitive = config.find_case_sensitive or false
local find_regex = config.find_regex or false
local function doc()
return last_view and last_view.doc or core.active_view.doc
return core.active_view:is(DocView) and core.active_view.doc or last_view.doc
end
local function get_find_tooltip()