[fzf#vim#grep] Go to the correct column by using cursor function instead of |

Ceci n'est pas une pipe.

Fix #1173
Fix #1174
This commit is contained in:
Junegunn Choi
2020-11-11 16:56:18 +09:00
parent 61c4b6d1ed
commit 53b3aea0da

View File

@@ -741,7 +741,7 @@ function! s:ag_handler(lines, has_column)
call s:open(cmd, first.filename)
execute first.lnum
if a:has_column
execute 'normal!' first.col.'|'
call cursor(0, first.col)
endif
normal! zz
catch