diff options
Diffstat (limited to 'modules/textadept')
-rw-r--r-- | modules/textadept/editing.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/textadept/editing.lua b/modules/textadept/editing.lua index b27d9fea..125db11c 100644 --- a/modules/textadept/editing.lua +++ b/modules/textadept/editing.lua @@ -611,7 +611,7 @@ function M.filter_through(command) }), command) local output = buffer.target_text for i = 1, #commands do - local p = assert(os.spawn(commands[i])) + local p = assert(os.spawn(commands[i]:match('^%s*(.-)%s*$'))) p:write(output) p:close() output = p:read('a') or '' |