aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/textadept/run.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/textadept/run.lua b/modules/textadept/run.lua
index da914e24..f8a10fac 100644
--- a/modules/textadept/run.lua
+++ b/modules/textadept/run.lua
@@ -68,7 +68,7 @@ function M.execute(command, lexer)
events_emit(COMPILE_OUTPUT, lexer, line:iconv('UTF-8', _CHARSET))
end
local ok, status, code = p:close()
- if ok then events_emit(COMPILE_OUTPUT, lexer, status..': '..code) end
+ if ok and code then events_emit(COMPILE_OUTPUT, lexer, status..': '..code) end
lfs.chdir(current_dir)
end