m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-19 09:03:43 -05:00

fixed bug: awk part of vg should parse out first element of fzf that is filename, but the given source adds a " +" plus anything that's in 2nd element (== linenr)

Janek Schleicher
2018-09-27 14:45:52 +02:00
parent 58bbd4f676
commit a9dcae3f5b

@@ -96,7 +96,7 @@ vf() {
vg() {
local file
file="$(ag --nobreak --noheading $@ | fzf -0 -1 | awk -F: '{print $1 " +" $2}')"
file="$(ag --nobreak --noheading $@ | fzf -0 -1 | awk -F: '{print $1}')"
if [[ -n $file ]]
then