aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/diff.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-08-23 22:00:19 +0800
committerGitHub <noreply@github.com>2022-08-23 22:00:19 +0800
commit6cc6e11929ad76a2dc5204aed95cb9ed1dafde23 (patch)
treeba76d33bfbf687d0d64038910218e37d0efd9edc /src/nvim/diff.c
parent779a25f040704e4f1b56abedc901ec4f9829bb27 (diff)
downloadrneovim-6cc6e11929ad76a2dc5204aed95cb9ed1dafde23.tar.gz
rneovim-6cc6e11929ad76a2dc5204aed95cb9ed1dafde23.tar.bz2
rneovim-6cc6e11929ad76a2dc5204aed95cb9ed1dafde23.zip
vim-patch:9.0.0206: redraw flags are not named specifically (#19913)
Problem: Redraw flags are not named specifically. Solution: Prefix "UPD_" to the flags, for UPDate_screen(). https://github.com/vim/vim/commit/a4d158b3c839e96ed98ff87c7b7124ff4518c4ff
Diffstat (limited to 'src/nvim/diff.c')
-rw-r--r--src/nvim/diff.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/diff.c b/src/nvim/diff.c
index bfafc3b4e0..90d621ae1e 100644
--- a/src/nvim/diff.c
+++ b/src/nvim/diff.c
@@ -120,7 +120,7 @@ void 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(curwin, VALID);
+ redraw_later(curwin, UPD_VALID);
}
}
}
@@ -659,7 +659,7 @@ void diff_redraw(bool dofold)
continue;
}
- redraw_later(wp, SOME_VALID);
+ redraw_later(wp, UPD_SOME_VALID);
if (wp != curwin) {
wp_other = wp;
}
@@ -1448,7 +1448,7 @@ void diff_win_options(win_T *wp, int addbuf)
if (addbuf) {
diff_buf_add(wp->w_buffer);
}
- redraw_later(wp, NOT_VALID);
+ redraw_later(wp, UPD_NOT_VALID);
}
/// Set options not to show diffs. For the current window or all windows.