From 105b5ca336aab1b319d85f0db849073530155c76 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Fri, 6 Apr 2012 10:35:46 -0400 Subject: Fixed bug in run/compile commands with LuaJIT; modules/textadept/run.lua --- modules/textadept/run.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') 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 -- cgit v1.2.3