aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/menu.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2018-10-22 14:44:46 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2018-10-22 14:44:46 -0400
commit37c05200f2a9d35477758a12ccbf69e29ad0d17e (patch)
treeb846a82c7e751bb8e613da470fffdb770094dd59 /modules/textadept/menu.lua
parentd4df6904a70b4b90f896ec8812a19368d2e04bdd (diff)
downloadtextadept-37c05200f2a9d35477758a12ccbf69e29ad0d17e.tar.gz
textadept-37c05200f2a9d35477758a12ccbf69e29ad0d17e.zip
Removed `textadept.editing.paste()` (pasted text is reindented).
It can be implemented as a separate user module instead.
Diffstat (limited to 'modules/textadept/menu.lua')
-rw-r--r--modules/textadept/menu.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/textadept/menu.lua b/modules/textadept/menu.lua
index f82d36f6..759452aa 100644
--- a/modules/textadept/menu.lua
+++ b/modules/textadept/menu.lua
@@ -18,8 +18,8 @@ local SEPARATOR = {''}
-- The following buffer functions need to be constantized in order for menu
-- items to identify the key associated with the functions.
local menu_buffer_functions = {
- 'undo', 'redo', 'cut', 'copy', 'line_duplicate', 'clear', 'select_all',
- 'upper_case', 'lower_case', 'move_selected_lines_up',
+ 'undo', 'redo', 'cut', 'copy', 'paste', 'line_duplicate', 'clear',
+ 'select_all', 'upper_case', 'lower_case', 'move_selected_lines_up',
'move_selected_lines_down', 'zoom_in', 'zoom_out', 'colourise'
}
for i = 1, #menu_buffer_functions do
@@ -81,7 +81,7 @@ local default_menubar = {
SEPARATOR,
{_L['Cu_t'], buffer.cut},
{_L['_Copy'], buffer.copy},
- {_L['_Paste'], textadept.editing.paste},
+ {_L['_Paste'], buffer.paste},
{_L['Duplicate _Line'], buffer.line_duplicate},
{_L['_Delete'], buffer.clear},
{_L['D_elete Word'], function()