comparison src/textprop.c @ 24192:dced82a0e5b2 v8.2.2637

patch 8.2.2637: prop_remove() causes a redraw even when nothing changed Commit: https://github.com/vim/vim/commit/09f8b3a02200a1900a8bb41d7436f9d17ebd2d1b Author: Bram Moolenaar <Bram@vim.org> Date: Sun Mar 21 22:29:54 2021 +0100 patch 8.2.2637: prop_remove() causes a redraw even when nothing changed Problem: prop_remove() causes a redraw even when nothing changed. Solution: Only redraw if a property was removed.
author Bram Moolenaar <Bram@vim.org>
date Sun, 21 Mar 2021 22:30:03 +0100
parents 90ea5037a7e3
children 55631f8e0730
comparison
equal deleted inserted replaced
24191:a464593df512 24192:dced82a0e5b2
918 break; 918 break;
919 } 919 }
920 } 920 }
921 } 921 }
922 } 922 }
923 redraw_buf_later(buf, NOT_VALID); 923 if (rettv->vval.v_number > 0)
924 redraw_buf_later(buf, NOT_VALID);
924 } 925 }
925 926
926 /* 927 /*
927 * Common for f_prop_type_add() and f_prop_type_change(). 928 * Common for f_prop_type_add() and f_prop_type_change().
928 */ 929 */