diff options
author | ckelsel <ckelsel@hotmail.com> | 2017-07-23 10:12:05 +0800 |
---|---|---|
committer | ckelsel <ckelsel@hotmail.com> | 2017-07-23 10:34:41 +0800 |
commit | ad07e9c7fcabeb991f0849c9e11b5b225cf470fd (patch) | |
tree | e2d669b869ea9a6ab56c457fa314dd273e0c1b8a /src/nvim/screen.c | |
parent | 253f6f3bbfd16b7aeb2f72714c1d5d1c88a3478a (diff) | |
download | rneovim-ad07e9c7fcabeb991f0849c9e11b5b225cf470fd.tar.gz rneovim-ad07e9c7fcabeb991f0849c9e11b5b225cf470fd.tar.bz2 rneovim-ad07e9c7fcabeb991f0849c9e11b5b225cf470fd.zip |
vim-patch:8.0.0069
Problem: Compiler warning for self-comparison.
Solution: Define ONE_WINDOW and add vim/vim#ifdef.
https://github.com/vim/vim/commit/a1f4cb93ba50ea9e40cd4b1f5592b8a6d1398660
Diffstat (limited to 'src/nvim/screen.c')
-rw-r--r-- | src/nvim/screen.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/screen.c b/src/nvim/screen.c index a8353153fd..bcc996679b 100644 --- a/src/nvim/screen.c +++ b/src/nvim/screen.c @@ -991,7 +991,7 @@ static void win_update(win_T *wp) * first. */ if (mid_start == 0) { mid_end = wp->w_height; - if (lastwin == firstwin) { + if (ONE_WINDOW) { /* Clear the screen when it was not done by win_del_lines() or * win_ins_lines() above, "screen_cleared" is FALSE or MAYBE * then. */ @@ -7160,7 +7160,7 @@ static int fillchar_status(int *attr, win_T *wp) * window differs, or the fillchars differ, or this is not the * current window */ if (*attr != 0 && ((win_hl_attr(wp, HLF_S) != win_hl_attr(wp, HLF_SNC) - || !is_curwin || firstwin == lastwin) + || !is_curwin || ONE_WINDOW) || (fill_stl != fill_stlnc))) { return fill; } |