From 0a6193a76de6aca1f17996404cc641b5a365af6f Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Sun, 12 Jul 2020 22:57:53 -0400 Subject: Made `ui.find.goto_file_found()` and `textadept.run.goto_error()` args optional. --- modules/textadept/menu.lua | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'modules/textadept/menu.lua') 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'], -- cgit v1.2.3