aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/run.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2011-12-31 16:39:25 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2011-12-31 16:39:25 -0500
commitae8dddf78ef5b07f4d64471d8f6800746373af6e (patch)
tree7c823a6df24dbec739559953e1c5d044067e226b /modules/textadept/run.lua
parentd9b2bf4b99d13e18f0ca4939e7f2ccc75472a846 (diff)
downloadtextadept-ae8dddf78ef5b07f4d64471d8f6800746373af6e.tar.gz
textadept-ae8dddf78ef5b07f4d64471d8f6800746373af6e.zip
Code cleanup.
Diffstat (limited to 'modules/textadept/run.lua')
-rw-r--r--modules/textadept/run.lua6
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)