From b058704586be68bf208c783787edc4573db89ace Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Fri, 16 Feb 2018 17:17:26 -0500 Subject: Small code and documentation cleanup. --- modules/textadept/menu.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/textadept/menu.lua') 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 -- cgit v1.2.3