grep: remove enventual \r
This commit is contained in:
parent
4eea0a4ce1
commit
bd5955c737
|
@ -5,9 +5,9 @@ def -shell-params -file-completion \
|
||||||
output=$(mktemp -d -t kak-grep.XXXXXXXX)/fifo
|
output=$(mktemp -d -t kak-grep.XXXXXXXX)/fifo
|
||||||
mkfifo ${output}
|
mkfifo ${output}
|
||||||
if (( $# > 0 )); then
|
if (( $# > 0 )); then
|
||||||
( ${kak_opt_grepcmd} "$@" >& ${output} ) >& /dev/null < /dev/null &
|
( ${kak_opt_grepcmd} "$@" | tr -d '\r' >& ${output} ) >& /dev/null < /dev/null &
|
||||||
else
|
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
|
fi
|
||||||
echo "try %{ db *grep* } catch %{}
|
echo "try %{ db *grep* } catch %{}
|
||||||
edit -fifo ${output} *grep*
|
edit -fifo ${output} *grep*
|
||||||
|
|
Loading…
Reference in New Issue
Block a user