mirror of
https://github.com/mawww/kakoune.git
synced 2024-11-26 08:29:21 +03:00
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
|
||||
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*
|
||||
|
Loading…
Reference in New Issue
Block a user