From 53b3aea0da5e3581e224c958dbc13558cbe5daee Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Wed, 11 Nov 2020 16:56:18 +0900 Subject: [PATCH] [fzf#vim#grep] Go to the correct column by using `cursor` function instead of | Ceci n'est pas une pipe. Fix #1173 Fix #1174 --- autoload/fzf/vim.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fzf/vim.vim b/autoload/fzf/vim.vim index 44246f7..4f7003f 100644 --- a/autoload/fzf/vim.vim +++ b/autoload/fzf/vim.vim @@ -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