Skip to content

Commit b71bec4

Browse files
mbrgmtpope
authored andcommitted
Strip out ^[[2K and ^[[0G in tmux output
^[[2K^[[0G means "clear line and move to the first column". They clutter up the output and should be stripped from it. Closes #86.
1 parent 990d542 commit b71bec4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/dispatch/tmux.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ function! dispatch#tmux#make(request) abort
5858
elseif uname ==# 'Linux'
5959
let filter .= ' -u'
6060
endif
61-
let filter .= " -e \"s/\r$//\" -e \"s/.*\r//\" -e \"s/\e\\[K//g\" -e \"s/\e\\[[0-9;]*m//g\" > ".a:request.file
61+
let filter .= " -e \"s/\r$//\" -e \"s/.*\r//\" -e \"s/\e\\[K//g\" -e \"s/.*\e\\[2K\e\\[0G//g\" -e \"s/\e\\[[0-9;]*m//g\" > ".a:request.file
6262
call system('tmux ' . cmd . '|tee ' . s:make_pane .
6363
\ (pipepane ? '|xargs -I {} tmux pipe-pane -t {} '.shellescape(filter) : ''))
6464

0 commit comments

Comments
 (0)