Mercurial > vim
diff src/diff.c @ 29732:89e1d67814a9 v9.0.0206
patch 9.0.0206: redraw flags are not named specifically
Commit: https://github.com/vim/vim/commit/a4d158b3c839e96ed98ff87c7b7124ff4518c4ff
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Aug 14 14:17:45 2022 +0100
patch 9.0.0206: redraw flags are not named specifically
Problem: Redraw flags are not named specifically.
Solution: Prefix "UPD_" to the flags, for UPDate_screen().
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 14 Aug 2022 15:30:05 +0200 |
parents | 99e3763cbd34 |
children | d8e7d725a666 |
line wrap: on
line diff
--- a/src/diff.c +++ b/src/diff.c @@ -123,7 +123,7 @@ diff_buf_delete(buf_T *buf) // don't redraw right away, more might change or buffer state // is invalid right now need_diff_redraw = TRUE; - redraw_later(VALID); + redraw_later(UPD_VALID); } } } @@ -683,7 +683,7 @@ diff_redraw( if (!wp->w_p_diff || !buf_valid(wp->w_buffer)) continue; - redraw_win_later(wp, SOME_VALID); + redraw_win_later(wp, UPD_SOME_VALID); if (wp != curwin) wp_other = wp; #ifdef FEAT_FOLDING @@ -1336,7 +1336,7 @@ ex_diffpatch(exarg_T *eap) #endif // patch probably has written over the screen - redraw_later(CLEAR); + redraw_later(UPD_CLEAR); // Delete any .orig or .rej file created. STRCPY(buf, tmp_new); @@ -1544,7 +1544,7 @@ diff_win_options( if (addbuf) diff_buf_add(wp->w_buffer); - redraw_win_later(wp, NOT_VALID); + redraw_win_later(wp, UPD_NOT_VALID); } /*