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:
parent
2ceea91504
commit
ff14308500
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user