aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2018-02-16 17:17:26 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2018-02-16 17:17:26 -0500
commitb058704586be68bf208c783787edc4573db89ace (patch)
tree87fa2fef463a406b6adab0e181b1eeb651ea6cd8 /modules/textadept
parentfc9b59c3b32b8782b5274767ec4fd4d98380d806 (diff)
downloadtextadept-b058704586be68bf208c783787edc4573db89ace.tar.gz
textadept-b058704586be68bf208c783787edc4573db89ace.zip
Small code and documentation cleanup.
Diffstat (limited to 'modules/textadept')
-rw-r--r--modules/textadept/keys.lua2
-rw-r--r--modules/textadept/menu.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/textadept/keys.lua b/modules/textadept/keys.lua
index 5d8b3bc7..12a8f3b0 100644
--- a/modules/textadept/keys.lua
+++ b/modules/textadept/keys.lua
@@ -207,7 +207,7 @@ local M = {}
-- N/A |N/A |F3 |Toggle "Regex"
-- N/A |N/A |F4 |Toggle "Find in Files"
--
--- †: Some terminals interpret ^Z as suspend.
+-- †: Some terminals interpret ^Z as suspend; see FAQ for workaround.
--
-- ‡: Ctrl+Enter in Win32 curses.
module('textadept.keys')]]
diff --git a/modules/textadept/menu.lua b/modules/textadept/menu.lua
index 40dd7bb7..da9703b2 100644
--- a/modules/textadept/menu.lua
+++ b/modules/textadept/menu.lua
@@ -179,7 +179,7 @@ local default_menubar = {
-- file. The difference is any additional arguments set previously.
base_commands[i] = commands[buffer.filename:match('[^.]+$')] or
commands[buffer:get_lexer()] or ''
- local current_command = (commands[buffer.filename] or '')
+ local current_command = commands[buffer.filename] or ''
local args = current_command:sub(#base_commands[i] + 2)
utf8_args[i] = args:iconv('UTF-8', _CHARSET)
end