diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-04-02 19:08:03 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2024-04-03 05:55:50 +0800 |
commit | a94120752344f04c3f6d7e088026e9a58f46fe64 (patch) | |
tree | 9a0a3cbb1779ed9c0aebdd79205921cd96c3a74e /src | |
parent | d9235efa76229708586d3c9db3dcbac46127ca0a (diff) | |
download | rneovim-a94120752344f04c3f6d7e088026e9a58f46fe64.tar.gz rneovim-a94120752344f04c3f6d7e088026e9a58f46fe64.tar.bz2 rneovim-a94120752344f04c3f6d7e088026e9a58f46fe64.zip |
vim-patch:9.0.0581: adding a character for incsearch fails at end of line
Problem: Adding a character for incsearch fails at end of line.
Solution: Only check cursor line number.
https://github.com/vim/vim/commit/d4566c14e71c55dcef05fb34ea94eba835831527
Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/move.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/move.c b/src/nvim/move.c index 52b65c0fef..e7416549f5 100644 --- a/src/nvim/move.c +++ b/src/nvim/move.c @@ -196,7 +196,7 @@ static void redraw_for_cursorcolumn(win_T *wp) int sms_marker_overlap(win_T *wp, int extra2) { // There is no marker overlap when in showbreak mode, thus no need to - // account for it. See grid_put_linebuf(). + // account for it. See wlv_put_linebuf(). if (*get_showbreak_value(wp) != NUL) { return 0; } @@ -621,7 +621,7 @@ int cursor_valid(win_T *wp) // w_topline must be valid, you may need to call update_topline() first! void validate_cursor(win_T *wp) { - check_cursor(wp); + check_cursor_lnum(wp); check_cursor_moved(wp); if ((wp->w_valid & (VALID_WCOL|VALID_WROW)) != (VALID_WCOL|VALID_WROW)) { curs_columns(wp, true); |