mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 19:38:20 +00:00
vim-patch:8.1.0289: cursor moves to wrong column after quickfix jump
Problem: Cursor moves to wrong column after quickfix jump.
Solution: Set the curswant flag. (Andy Massimino, closes vim/vim#3331)
2dfcef4c08
This commit is contained in:
@@ -2299,6 +2299,7 @@ static void qf_jump_goto_line(linenr_T qf_lnum, int qf_col, char_u qf_viscol,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
curwin->w_set_curswant = true;
|
||||||
check_cursor();
|
check_cursor();
|
||||||
} else {
|
} else {
|
||||||
beginline(BL_WHITE | BL_FIX);
|
beginline(BL_WHITE | BL_FIX);
|
||||||
|
@@ -3566,3 +3566,12 @@ func Test_view_result_split()
|
|||||||
call Xview_result_split_tests('c')
|
call Xview_result_split_tests('c')
|
||||||
call Xview_result_split_tests('l')
|
call Xview_result_split_tests('l')
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
|
" Test that :cc sets curswant
|
||||||
|
func Test_curswant()
|
||||||
|
helpgrep quickfix
|
||||||
|
normal! llll
|
||||||
|
1cc
|
||||||
|
call assert_equal(getcurpos()[4], virtcol('.'))
|
||||||
|
cclose | helpclose
|
||||||
|
endfunc
|
||||||
|
Reference in New Issue
Block a user