aboutsummaryrefslogtreecommitdiff
path: root/core/init.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2020-07-14 23:18:40 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2020-07-14 23:18:40 -0400
commitec96c0bed0fdb3df98c88fc6d559fa4e483fb912 (patch)
tree7400ff98682e455158e794be5ced535f0f321e59 /core/init.lua
parentf876b491aed01150ff090048e3dca4f3eb8c76f4 (diff)
downloadtextadept-ec96c0bed0fdb3df98c88fc6d559fa4e483fb912.tar.gz
textadept-ec96c0bed0fdb3df98c88fc6d559fa4e483fb912.zip
Renamed os.spawn() parameter from 'argv' to 'cmd'.
There should be no confusion that it's a command line string, not a table of strings.
Diffstat (limited to 'core/init.lua')
-rw-r--r--core/init.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/init.lua b/core/init.lua
index 07c9e060..32e4090a 100644
--- a/core/init.lua
+++ b/core/init.lua
@@ -23,7 +23,7 @@ _M = {} -- language modules table
-- pdcurses compatibility.
if CURSES and WIN32 then
- function os.spawn(argv, ...)
+ function os.spawn(cmd, ...)
local cwd = lfs.currentdir()
local args, i = {...}, 1
if type(args[i]) == 'string' then
@@ -31,7 +31,7 @@ if CURSES and WIN32 then
i = i + 1
end
if type(args[i]) == 'table' then i = i + 1 end -- env (ignore)
- local p = io.popen(assert_type(argv, 'string', 1) .. ' 2>&1')
+ local p = io.popen(assert_type(cmd, 'string', 1) .. ' 2>&1')
if type(args[i]) == 'function' then args[i](p:read('a')) end -- stdout_cb
local status = select(3, p:close())
if type(args[i + 2]) == 'function' then args[i + 2](status) end -- exit_cb