Fix `doc` selection in `findreplace`
Use `last_view` if `active_view` is `CommandView`.
This commit is contained in:
parent
1976facaf1
commit
af925d603b
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue