Mercurial > vim
comparison src/move.c @ 29275:281509f1417b v8.2.5155
patch 8.2.5155: in diff mode windows may get out of sync
Commit: https://github.com/vim/vim/commit/a315ce1f326b836167ca8b1037dafd93eb8d4d4e
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Jun 24 12:38:57 2022 +0100
patch 8.2.5155: in diff mode windows may get out of sync
Problem: In diff mode windows may get out of sync. (Gary Johnson)
Solution: Avoid that the other window scrolls for 'cursorbind'.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 24 Jun 2022 13:45:04 +0200 |
parents | da56650de132 |
children | d97b2ce26258 |
comparison
equal
deleted
inserted
replaced
29274:d314efe6447a | 29275:281509f1417b |
---|---|
2950 // Make sure the cursor is in a valid position. Temporarily set | 2950 // Make sure the cursor is in a valid position. Temporarily set |
2951 // "restart_edit" to allow the cursor to be beyond the EOL. | 2951 // "restart_edit" to allow the cursor to be beyond the EOL. |
2952 restart_edit_save = restart_edit; | 2952 restart_edit_save = restart_edit; |
2953 restart_edit = TRUE; | 2953 restart_edit = TRUE; |
2954 check_cursor(); | 2954 check_cursor(); |
2955 validate_cursor(); | 2955 |
2956 // Avoid a scroll here for the cursor position, 'scrollbind' is | |
2957 // more important. | |
2958 if (!curwin->w_p_scb) | |
2959 validate_cursor(); | |
2960 | |
2956 restart_edit = restart_edit_save; | 2961 restart_edit = restart_edit_save; |
2957 // Correct cursor for multi-byte character. | 2962 // Correct cursor for multi-byte character. |
2958 if (has_mbyte) | 2963 if (has_mbyte) |
2959 mb_adjust_cursor(); | 2964 mb_adjust_cursor(); |
2960 redraw_later(VALID); | 2965 redraw_later(VALID); |