comparison src/edit.c @ 32479:87f59a64efab v9.0.1571

patch 9.0.1571: RedrawingDisabled not used consistently Commit: https://github.com/vim/vim/commit/79cdf026f1b8a16298ee73be497c4bd5f3458cde Author: Bram Moolenaar <Bram@vim.org> Date: Sat May 20 14:07:00 2023 +0100 patch 9.0.1571: RedrawingDisabled not used consistently Problem: RedrawingDisabled not used consistently. Solution: Avoid RedrawingDisabled going negative. Set RedrawingDisabled in win_split_ins(). (closes #11961)
author Bram Moolenaar <Bram@vim.org>
date Sat, 20 May 2023 15:15:05 +0200
parents 11bc7fa31c3b
children 72fd0421c183
comparison
equal deleted inserted replaced
32478:8117806f2947 32479:87f59a64efab
3611 #endif 3611 #endif
3612 3612
3613 temp = curwin->w_cursor.col; 3613 temp = curwin->w_cursor.col;
3614 if (disabled_redraw) 3614 if (disabled_redraw)
3615 { 3615 {
3616 --RedrawingDisabled; 3616 if (RedrawingDisabled > 0)
3617 --RedrawingDisabled;
3617 disabled_redraw = FALSE; 3618 disabled_redraw = FALSE;
3618 } 3619 }
3619 if (!arrow_used) 3620 if (!arrow_used)
3620 { 3621 {
3621 /* 3622 /*