From 099130173d97f273695159a3a8dcaff8de2b4f76 Mon Sep 17 00:00:00 2001 From: James Adam Date: Sat, 23 Jul 2016 06:29:47 +0100 Subject: [PATCH] Strip control characters from Ack output under tmux (#175) --- autoload/dispatch/tmux.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/autoload/dispatch/tmux.vim b/autoload/dispatch/tmux.vim index 3754f08..7ff4d8e 100644 --- a/autoload/dispatch/tmux.vim +++ b/autoload/dispatch/tmux.vim @@ -67,6 +67,7 @@ function! dispatch#tmux#make(request) abort let filter .= " -e \"s/\r$//\" -e \"s/.*\r//\"" let filter .= " -e \"s/\e\\[K//g\" " let filter .= " -e \"s/.*\e\\[2K\e\\[0G//g\"" + let filter .= " -e \"s/.*\e\\[?25h\e\\[0G//g\"" let filter .= " -e \"s/\e\\[[0-9;]*m//g\"" let filter .= " -e \"s/\017//g\"" let filter .= " > " . a:request.file . ""