Skip to content

Commit 6a9a628

Browse files
committed
Remove trailing spaces from output lines
1 parent b35f4df commit 6a9a628

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

autoload/run.vim

+2
Original file line numberDiff line numberDiff line change
@@ -725,6 +725,8 @@ function! run#out_cb(channel, msg, ...)
725725
else
726726
let output = [a:msg]
727727
endif
728+
" remove trailing spaces
729+
let output = map(output, { i, v -> trim(v, '', 2) })
728730
call writefile(output, fname, "a")
729731
endfunction
730732

0 commit comments

Comments
 (0)