comparison src/move.c @ 29708:d97b2ce26258 v9.0.0194

patch 9.0.0194: cursor displayed in wrong position after removing text prop Commit: https://github.com/vim/vim/commit/326c5d36e7cb8526330565109c17b4a13ff790ae Author: Bram Moolenaar <Bram@vim.org> Date: Fri Aug 12 13:05:49 2022 +0100 patch 9.0.0194: cursor displayed in wrong position after removing text prop Problem: Cursor displayed in wrong position after removing text prop. (Ben Jackson) Solution: Invalidate the cursor position. (closes #10898)
author Bram Moolenaar <Bram@vim.org>
date Fri, 12 Aug 2022 14:15:04 +0200
parents 281509f1417b
children 89e1d67814a9
comparison
equal deleted inserted replaced
29707:325f7101453d 29708:d97b2ce26258
589 void 589 void
590 changed_line_abv_curs_win(win_T *wp) 590 changed_line_abv_curs_win(win_T *wp)
591 { 591 {
592 wp->w_valid &= ~(VALID_WROW|VALID_WCOL|VALID_VIRTCOL|VALID_CROW 592 wp->w_valid &= ~(VALID_WROW|VALID_WCOL|VALID_VIRTCOL|VALID_CROW
593 |VALID_CHEIGHT|VALID_TOPLINE); 593 |VALID_CHEIGHT|VALID_TOPLINE);
594 }
595
596 /*
597 * Display of line has changed for "buf", invalidate cursor position and
598 * w_botline.
599 */
600 void
601 changed_line_display_buf(buf_T *buf)
602 {
603 win_T *wp;
604
605 FOR_ALL_WINDOWS(wp)
606 if (wp->w_buffer == buf)
607 wp->w_valid &= ~(VALID_WROW|VALID_WCOL|VALID_VIRTCOL
608 |VALID_CROW|VALID_CHEIGHT
609 |VALID_TOPLINE|VALID_BOTLINE|VALID_BOTLINE_AP);
594 } 610 }
595 611
596 /* 612 /*
597 * Make sure the value of curwin->w_botline is valid. 613 * Make sure the value of curwin->w_botline is valid.
598 */ 614 */