diff options
author | 2016-06-16 23:29:56 -0400 | |
---|---|---|
committer | 2016-06-16 23:29:56 -0400 | |
commit | 4e55b247304ebc962d59ffa61d8788df802b0d6a (patch) | |
tree | e502b3e57a216efaa7dbef95c0a5bdf9ea76231a /modules/textadept/menu.lua | |
parent | b2a88f20460e036012156aa2085114befadfd9af (diff) | |
download | textadept-4e55b247304ebc962d59ffa61d8788df802b0d6a.tar.gz textadept-4e55b247304ebc962d59ffa61d8788df802b0d6a.zip |
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.
Diffstat (limited to 'modules/textadept/menu.lua')
-rw-r--r-- | modules/textadept/menu.lua | 8 |
1 files changed, 4 insertions, 4 deletions
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}, |