1
0
mirror of https://github.com/Morantron/tmux-fingers.git synced 2024-06-21 06:56:43 +02:00

preserve tabs when echoing hints

This commit is contained in:
Jorge Morante 2016-05-05 23:44:09 +02:00
parent 2ceea91504
commit ff14308500

View File

@ -33,10 +33,13 @@ function lookup_match() {
}
lines=''
OLDIFS=$IFS
IFS=
while read -r line
do
lines+="$line\n"
done < /dev/stdin
IFS=$OLDIFS
matches=$(echo -e $lines | (grep -oniE "$PATTERNS" 2> /dev/null) | sort -u)