From f10a48801dd09bb6cb058b4f783f879720d22bf0 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Sun, 25 Sep 2011 22:37:24 -0400 Subject: Refactored textadept.c and changed Lua interface a bit. '_BUFFERS' and '_VIEWS' now also have buffer and view keys with index values; 'buffer.doc_pointer', 'view.doc_pointer', and 'gui.focused_doc_pointer' are no longer used; 'buffer:check_global()' replaces 'gui.check_focused_buffer()'; Added 'view.buffer' field; 'view:goto_buffer()' and 'gui.goto_view()' arguments changed to make more sense. --- modules/textadept/menu.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'modules/textadept/menu.lua') diff --git a/modules/textadept/menu.lua b/modules/textadept/menu.lua index 82c72cfa..e26a2ec4 100644 --- a/modules/textadept/menu.lua +++ b/modules/textadept/menu.lua @@ -149,8 +149,8 @@ menubar = { { L('Show Style'), utils.show_style }, }, { title = L('Buffer'), - { L('Next Buffer'), { _view.goto_buffer, _view, 1, false } }, - { L('Previous Buffer'), { _view.goto_buffer, _view, -1, false } }, + { L('Next Buffer'), { _view.goto_buffer, _view, 1, true } }, + { L('Previous Buffer'), { _view.goto_buffer, _view, -1, true } }, { L('Switch to Buffer...'), gui.switch_buffer }, SEPARATOR, { title = L('Indentation'), @@ -179,11 +179,11 @@ menubar = { { L('Refresh Syntax Highlighting'), { _buffer.colourise, _buffer, 0, -1 } }, }, { title = L('View'), - { L('Next View'), { gui.goto_view, 1, false } }, - { L('Previous View'), { gui.goto_view, -1, false } }, + { L('Next View'), { gui.goto_view, 1, true } }, + { L('Previous View'), { gui.goto_view, -1, true } }, SEPARATOR, - { L('Split View Horizontal'), { _view.split, _view, false } }, - { L('Split View Vertical'), { _view.split, _view } }, + { L('Split View Horizontal'), { _view.split, _view } }, + { L('Split View Vertical'), { _view.split, _view, true } }, { L('Unsplit View'), { _view.unsplit, _view } }, { L('Unsplit All Views'), utils.unsplit_all }, { L('Grow View'), { utils.grow, 10 } }, -- cgit v1.2.3