aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/run.lua
diff options
context:
space:
mode:
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)