From 4e55b247304ebc962d59ffa61d8788df802b0d6a Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Thu, 16 Jun 2016 23:29:56 -0400 Subject: Changed arguments to `ui.goto_view()` and `view:goto_buffer()`. They can accept either objects or relative numbers now. They do not accept absolute indices anymore. --- modules/textadept/menu.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'modules/textadept/menu.lua') diff --git a/modules/textadept/menu.lua b/modules/textadept/menu.lua index e09c6ca4..6f3346d9 100644 --- a/modules/textadept/menu.lua +++ b/modules/textadept/menu.lua @@ -257,8 +257,8 @@ local default_menubar = { }, { title = _L['_Buffer'], - {_L['_Next Buffer'], function() view:goto_buffer(1, true) end}, - {_L['_Previous Buffer'], function() view:goto_buffer(-1, true) end}, + {_L['_Next Buffer'], function() view:goto_buffer(1) end}, + {_L['_Previous Buffer'], function() view:goto_buffer(-1) end}, {_L['_Switch to Buffer...'], ui.switch_buffer}, SEPARATOR, { @@ -303,8 +303,8 @@ local default_menubar = { }, { title = _L['_View'], - {_L['_Next View'], function() ui.goto_view(1, true) end}, - {_L['_Previous View'], function() ui.goto_view(-1, true) end}, + {_L['_Next View'], function() ui.goto_view(1) end}, + {_L['_Previous View'], function() ui.goto_view(-1) end}, SEPARATOR, {_L['Split View _Horizontal'], function() view:split() end}, {_L['Split View _Vertical'], function() view:split(true) end}, -- cgit v1.2.3