From 6330f4d596d08314d0f89d4da47a4fe0bbb34b8d Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Thu, 15 Jul 2021 18:29:48 -0400 Subject: [PATCH] Allowed find to function across different views. --- 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 648c8d9e..7904632a 100644 --- a/data/core/commands/findreplace.lua +++ b/data/core/commands/findreplace.lua @@ -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()