From bd5955c7378948c6694dac6a95b231fa13405da7 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 13 Feb 2013 14:28:42 +0100 Subject: [PATCH] grep: remove enventual \r --- src/rc/grep.kak | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rc/grep.kak b/src/rc/grep.kak index 8dd152a3..997f1ff0 100644 --- a/src/rc/grep.kak +++ b/src/rc/grep.kak @@ -5,9 +5,9 @@ def -shell-params -file-completion \ output=$(mktemp -d -t kak-grep.XXXXXXXX)/fifo mkfifo ${output} if (( $# > 0 )); then - ( ${kak_opt_grepcmd} "$@" >& ${output} ) >& /dev/null < /dev/null & + ( ${kak_opt_grepcmd} "$@" | tr -d '\r' >& ${output} ) >& /dev/null < /dev/null & else - ( ${kak_opt_grepcmd} "${kak_selection}" >& ${output} ) >& /dev/null < /dev/null & + ( ${kak_opt_grepcmd} "${kak_selection}" | tr -d '\r' >& ${output} ) >& /dev/null < /dev/null & fi echo "try %{ db *grep* } catch %{} edit -fifo ${output} *grep*