aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/menu.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2020-03-16 19:49:05 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2020-03-16 19:49:05 -0400
commit874b3ef5965170d152c9e702eb7c90075e7ab418 (patch)
tree5d2045a093120259b9fa2248893a90b181b81219 /modules/textadept/menu.lua
parent1f50b95c871660fc117241b703b2ee42643eea6c (diff)
downloadtextadept-874b3ef5965170d152c9e702eb7c90075e7ab418.tar.gz
textadept-874b3ef5965170d152c9e702eb7c90075e7ab418.zip
Moved individual buffer functions in `io` into `buffer`.
e.g. `io.reload_buffer()` was renamed `buffer:reload()`.
Diffstat (limited to 'modules/textadept/menu.lua')
-rw-r--r--modules/textadept/menu.lua18
1 files changed, 9 insertions, 9 deletions
diff --git a/modules/textadept/menu.lua b/modules/textadept/menu.lua
index 02ae948b..ed1cd763 100644
--- a/modules/textadept/menu.lua
+++ b/modules/textadept/menu.lua
@@ -15,7 +15,7 @@ module('textadept.menu')]]
local _L = _L
local SEPARATOR = {''}
--- The following buffer functions need to be constantized in order for menu
+-- The following buffer functions need to be made constant in order for menu
-- items to identify the key associated with the functions.
local menu_buffer_functions = {
'undo', 'redo', 'cut', 'copy', 'paste', 'line_duplicate', 'clear',
@@ -59,12 +59,12 @@ local default_menubar = {
{_L['New'], buffer.new},
{_L['Open'], io.open_file},
{_L['Open Recent...'], io.open_recent_file},
- {_L['Reload'], io.reload_file},
- {_L['Save'], io.save_file},
- {_L['Save As'], io.save_file_as},
+ {_L['Reload'], buffer.reload},
+ {_L['Save'], buffer.save},
+ {_L['Save As'], buffer.save_as},
{_L['Save All'], io.save_all_files},
SEPARATOR,
- {_L['Close'], io.close_buffer},
+ {_L['Close'], buffer.close},
{_L['Close All'], io.close_all_buffers},
SEPARATOR,
{_L['Load Session...'], textadept.session.load},
@@ -381,12 +381,12 @@ local default_context_menu = {
-- @class table
-- @name tab_context_menu
local default_tab_context_menu = {
- {_L['Close'], io.close_buffer},
+ {_L['Close'], buffer.close},
SEPARATOR,
- {_L['Save'], io.save_file},
- {_L['Save As'], io.save_file_as},
+ {_L['Save'], buffer.save},
+ {_L['Save As'], buffer.save_as},
SEPARATOR,
- {_L['Reload'], io.reload_file},
+ {_L['Reload'], buffer.reload},
}
-- Table of proxy tables for menus.