Mercurial > vim
comparison src/move.c @ 28542:51b5cab35afa v8.2.4795
patch 8.2.4795: 'cursorbind' scrolling depends on whether 'cursorline' is set
Commit: https://github.com/vim/vim/commit/2c645e8b00641f504072f35e061b7392ed41f491
Author: Christian Brabandt <cb@256bit.org>
Date: Wed Apr 20 14:52:01 2022 +0100
patch 8.2.4795: 'cursorbind' scrolling depends on whether 'cursorline' is set
Problem: 'cursorbind' scrolling depends on whether 'cursorline' is set.
Solution: Always call validate_cursor(). (Christian Brabandt, closes https://github.com/vim/vim/issues/10230,
closes #10014)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 20 Apr 2022 16:00:04 +0200 |
parents | d83d9eaccdde |
children | 3892e7574812 |
comparison
equal
deleted
inserted
replaced
28541:cf8a9a334edd | 28542:51b5cab35afa |
---|---|
2916 // Make sure the cursor is in a valid position. Temporarily set | 2916 // Make sure the cursor is in a valid position. Temporarily set |
2917 // "restart_edit" to allow the cursor to be beyond the EOL. | 2917 // "restart_edit" to allow the cursor to be beyond the EOL. |
2918 restart_edit_save = restart_edit; | 2918 restart_edit_save = restart_edit; |
2919 restart_edit = TRUE; | 2919 restart_edit = TRUE; |
2920 check_cursor(); | 2920 check_cursor(); |
2921 # ifdef FEAT_SYN_HL | 2921 validate_cursor(); |
2922 if (curwin->w_p_cul || curwin->w_p_cuc) | |
2923 validate_cursor(); | |
2924 # endif | |
2925 restart_edit = restart_edit_save; | 2922 restart_edit = restart_edit_save; |
2926 // Correct cursor for multi-byte character. | 2923 // Correct cursor for multi-byte character. |
2927 if (has_mbyte) | 2924 if (has_mbyte) |
2928 mb_adjust_cursor(); | 2925 mb_adjust_cursor(); |
2929 redraw_later(VALID); | 2926 redraw_later(VALID); |