aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/menu.lua
diff options
context:
space:
mode:
authormitchell <70453897+orbitalquark@users.noreply.github.com>2020-12-19 11:27:08 -0500
committermitchell <70453897+orbitalquark@users.noreply.github.com>2020-12-19 11:27:08 -0500
commitf107c48f8fbc4ef27b2bb1d4d01420229421b885 (patch)
treea6606edcdc5e25ad926b656d94d578014871b47f /modules/textadept/menu.lua
parentdc659bcfb7adbd9e65631507c29976d2903a3950 (diff)
downloadtextadept-f107c48f8fbc4ef27b2bb1d4d01420229421b885.tar.gz
textadept-f107c48f8fbc4ef27b2bb1d4d01420229421b885.zip
Ensure a bare `ui.find.focus()` call resets incremental and in files options.
Diffstat (limited to 'modules/textadept/menu.lua')
-rw-r--r--modules/textadept/menu.lua12
1 files changed, 3 insertions, 9 deletions
diff --git a/modules/textadept/menu.lua b/modules/textadept/menu.lua
index 2dee4f60..1ae2d909 100644
--- a/modules/textadept/menu.lua
+++ b/modules/textadept/menu.lua
@@ -147,20 +147,14 @@ local default_menubar = {
},
{
title = _L['Search'],
- {_L['Find'], function()
- ui.find.focus{in_files = false, incremental = false}
- end},
+ {_L['Find'], ui.find.focus},
{_L['Find Next'], ui.find.find_next},
{_L['Find Previous'], ui.find.find_prev},
{_L['Replace'], ui.find.replace},
{_L['Replace All'], ui.find.replace_all},
- {_L['Find Incremental'], function()
- ui.find.focus{in_files = false, incremental = true}
- end},
+ {_L['Find Incremental'], function() ui.find.focus{incremental = true} end},
SEPARATOR,
- {_L['Find in Files'], function()
- ui.find.focus{in_files = true, incremental = false}
- end},
+ {_L['Find in Files'], function() ui.find.focus{in_files = true} end},
{_L['Goto Next File Found'], function() ui.find.goto_file_found(true) end},
{_L['Goto Previous File Found'], function()
ui.find.goto_file_found(false)