diff options
author | 2014-02-10 12:29:28 -0500 | |
---|---|---|
committer | 2014-02-10 12:29:28 -0500 | |
commit | 08db22eaf1d7a85788e9a35b2651f044c0e70cfa (patch) | |
tree | fa1cf527175c341cae0bd2fe4be1b59eb836efc6 | |
parent | 253b2a07a7d06c2aeafe7661223ca7de7fe06b6b (diff) | |
download | textadept-08db22eaf1d7a85788e9a35b2651f044c0e70cfa.tar.gz textadept-08db22eaf1d7a85788e9a35b2651f044c0e70cfa.zip |
Improved compatibility of experimental winapi `os.execute()`; core/file_io.lua
-rw-r--r-- | core/file_io.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/file_io.lua b/core/file_io.lua index 73b70f3f..257eb5ef 100644 --- a/core/file_io.lua +++ b/core/file_io.lua @@ -460,7 +460,8 @@ if WIN32 then return file end os.execute = function(prog) + if not prog then return true end -- shell is available local code = winapi.execute(prog) - if code then return code == 0 and true or nil, 'exit', code end + return code == 0 and true or nil, 'exit', code end end |