diff options
author | KunMing Xie <qqzz014@gmail.com> | 2018-01-31 03:29:15 +0800 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2018-01-30 20:29:15 +0100 |
commit | 8728a5d50bc3339db81c7f29d59c55f9f817f06c (patch) | |
tree | e5ecd3e8bc2310d35889731dacf2cbcab38887dd /src/nvim/move.c | |
parent | 2a1a624878ec70caf1e61b7440a6b9e4dce6c36f (diff) | |
download | rneovim-8728a5d50bc3339db81c7f29d59c55f9f817f06c.tar.gz rneovim-8728a5d50bc3339db81c7f29d59c55f9f817f06c.tar.bz2 rneovim-8728a5d50bc3339db81c7f29d59c55f9f817f06c.zip |
vim-patch:8.0.0448: some macros are lower case (#7936)
Problem: Some macros are in lower case, which can be confusing.
Solution: Make a few lower case macros upper case.
https://github.com/vim/vim/commit/b5aedf3e228d35821591da9ae8501b61cf2e264c
ref #6297
Diffstat (limited to 'src/nvim/move.c')
-rw-r--r-- | src/nvim/move.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/nvim/move.c b/src/nvim/move.c index 134ffcd7dc..6548d351a6 100644 --- a/src/nvim/move.c +++ b/src/nvim/move.c @@ -155,12 +155,11 @@ void update_topline(void) old_topline = curwin->w_topline; old_topfill = curwin->w_topfill; - /* - * If the buffer is empty, always set topline to 1. - */ - if (bufempty()) { /* special case - file is empty */ - if (curwin->w_topline != 1) + // If the buffer is empty, always set topline to 1. + if (BUFEMPTY()) { // special case - file is empty + if (curwin->w_topline != 1) { redraw_later(NOT_VALID); + } curwin->w_topline = 1; curwin->w_botline = 2; curwin->w_valid |= VALID_BOTLINE|VALID_BOTLINE_AP; |