aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/menu.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2011-09-25 22:37:24 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2011-09-25 22:37:24 -0400
commitf10a48801dd09bb6cb058b4f783f879720d22bf0 (patch)
tree8b22a252a4b6f60cc7cb8acf862d5c770be8a28a /modules/textadept/menu.lua
parent8461d29251895160755695b74ca6356a9cd8e6f3 (diff)
downloadtextadept-f10a48801dd09bb6cb058b4f783f879720d22bf0.tar.gz
textadept-f10a48801dd09bb6cb058b4f783f879720d22bf0.zip
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.
Diffstat (limited to 'modules/textadept/menu.lua')
-rw-r--r--modules/textadept/menu.lua12
1 files changed, 6 insertions, 6 deletions
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 } },