aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/menu.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2020-07-12 22:57:53 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2020-07-12 22:57:53 -0400
commit0a6193a76de6aca1f17996404cc641b5a365af6f (patch)
tree91af549127359ff547f1c2f993e80ed5fa0bef5b /modules/textadept/menu.lua
parentebd67cde9828e74339c913a62150eb93ba97fe14 (diff)
downloadtextadept-0a6193a76de6aca1f17996404cc641b5a365af6f.tar.gz
textadept-0a6193a76de6aca1f17996404cc641b5a365af6f.zip
Made `ui.find.goto_file_found()` and `textadept.run.goto_error()` args optional.
Diffstat (limited to 'modules/textadept/menu.lua')
-rw-r--r--modules/textadept/menu.lua12
1 files changed, 4 insertions, 8 deletions
diff --git a/modules/textadept/menu.lua b/modules/textadept/menu.lua
index c61c8e81..c84e2bd7 100644
--- a/modules/textadept/menu.lua
+++ b/modules/textadept/menu.lua
@@ -153,11 +153,9 @@ local default_menubar = {
ui.find.in_files = true
ui.find.focus()
end},
- {_L['Goto Next File Found'], function()
- ui.find.goto_file_found(false, 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, false)
+ ui.find.goto_file_found(false)
end},
SEPARATOR,
{_L['Jump to'], textadept.editing.goto_line}
@@ -198,10 +196,8 @@ local default_menubar = {
end},
{_L['Build'], textadept.run.build},
{_L['Stop'], textadept.run.stop},
- {_L['Next Error'], function() textadept.run.goto_error(false, true) end},
- {_L['Previous Error'], function()
- textadept.run.goto_error(false, false)
- end},
+ {_L['Next Error'], function() textadept.run.goto_error(true) end},
+ {_L['Previous Error'], function() textadept.run.goto_error(false) end},
SEPARATOR,
{
title = _L['Bookmarks'],