diff options
| author | Adam Harrison <adamdharrison@gmail.com> | 2021-07-15 18:29:48 -0400 |
|---|---|---|
| committer | Adam Harrison <adamdharrison@gmail.com> | 2021-07-15 18:29:48 -0400 |
| commit | 6330f4d596d08314d0f89d4da47a4fe0bbb34b8d (patch) | |
| tree | 2f5f436fa45a8bcfbf18a1717a63e818e7f987d2 /data | |
| parent | a218a95c4535be0f2a507aa06e2564546e0d16dd (diff) | |
| download | lite-xl-6330f4d596d08314d0f89d4da47a4fe0bbb34b8d.tar.gz lite-xl-6330f4d596d08314d0f89d4da47a4fe0bbb34b8d.zip | |
Allowed find to function across different views.
Diffstat (limited to 'data')
| -rw-r--r-- | data/core/commands/findreplace.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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() |
