diff options
author | 2011-12-31 16:39:25 -0500 | |
---|---|---|
committer | 2011-12-31 16:39:25 -0500 | |
commit | ae8dddf78ef5b07f4d64471d8f6800746373af6e (patch) | |
tree | 7c823a6df24dbec739559953e1c5d044067e226b /modules/textadept/run.lua | |
parent | d9b2bf4b99d13e18f0ca4939e7f2ccc75472a846 (diff) | |
download | textadept-ae8dddf78ef5b07f4d64471d8f6800746373af6e.tar.gz textadept-ae8dddf78ef5b07f4d64471d8f6800746373af6e.zip |
Code cleanup.
Diffstat (limited to 'modules/textadept/run.lua')
-rw-r--r-- | modules/textadept/run.lua | 6 |
1 files changed, 2 insertions, 4 deletions
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) |