From ae8dddf78ef5b07f4d64471d8f6800746373af6e Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Sat, 31 Dec 2011 16:39:25 -0500 Subject: Code cleanup. --- modules/textadept/run.lua | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'modules/textadept/run.lua') diff --git a/modules/textadept/run.lua b/modules/textadept/run.lua index 0947258b..88967d1c 100644 --- a/modules/textadept/run.lua +++ b/modules/textadept/run.lua @@ -52,10 +52,8 @@ function M.execute(command) end local filename_noext = filename:match('^(.+)%.') command = command:gsub('%%%b()', { - ['%(filepath)'] = filepath, - ['%(filedir)'] = filedir, - ['%(filename)'] = filename, - ['%(filename_noext)'] = filename_noext, + ['%(filepath)'] = filepath, ['%(filedir)'] = filedir, + ['%(filename)'] = filename, ['%(filename_noext)'] = filename_noext, }) local current_dir = lfs.currentdir() lfs.chdir(filedir) -- cgit v1.2.3