aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept
diff options
context:
space:
mode:
Diffstat (limited to 'modules/textadept')
-rw-r--r--modules/textadept/editing.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/textadept/editing.lua b/modules/textadept/editing.lua
index cf449234..98f8da93 100644
--- a/modules/textadept/editing.lua
+++ b/modules/textadept/editing.lua
@@ -603,6 +603,11 @@ function M.filter_through(command)
p:write(output)
p:close()
output = p:read('a') or ''
+ if p:wait() ~= 0 then
+ ui.statusbar_text = string.format('"%s" %s', commands[i],
+ _L['returned non-zero status'])
+ return
+ end
end
buffer:replace_target(output:iconv('UTF-8', _CHARSET))
if s ~= e then