diff options
author | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2021-11-19 20:21:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-19 14:21:53 -0500 |
commit | 725cbe7d414f609e769081276f2a034e32a4337b (patch) | |
tree | da4a7175d450e582fab94480b59ea54454cb0078 /src/nvim/move.c | |
parent | 9ec4417afc072533ed2c6924323e9d885c52f6fe (diff) | |
download | rneovim-725cbe7d414f609e769081276f2a034e32a4337b.tar.gz rneovim-725cbe7d414f609e769081276f2a034e32a4337b.tar.bz2 rneovim-725cbe7d414f609e769081276f2a034e32a4337b.zip |
refactor: saner options for uncrustify (#16204)
* sp_enum_after_assign = force
* sp_brace_typedef = force
* nl_do_brace = remove
* sp_do_brace_open = force
* sp_brace_close_while = force
* sp_before_semi = remove
* sp_before_semi_for = remove
* sp_before_semi_for_empty = remove
* sp_between_semi_for_empty = remove
* sp_after_semi_for_empty = remove
* sp_before_square = remove
* sp_before_squares = remove
* sp_inside_square = remove
* sp_inside_fparens = remove
* sp_inside_fparen = remove
* sp_inside_tparen = remove
* sp_after_tparen_close = remove
* sp_return_paren = force
* pos_bool = lead
* sp_pp_concat = remove
* sp_pp_stringify = remove
* fixup: disable formatting for the INIT section
Diffstat (limited to 'src/nvim/move.c')
-rw-r--r-- | src/nvim/move.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/move.c b/src/nvim/move.c index 5114cd6d8a..d80e63e79d 100644 --- a/src/nvim/move.c +++ b/src/nvim/move.c @@ -382,8 +382,8 @@ static bool check_top_offset(void) topline_back(curwin, &loff); // Stop when included a line above the window. if (loff.lnum < curwin->w_topline - || (loff.lnum == curwin->w_topline && - loff.fill > 0)) { + || (loff.lnum == curwin->w_topline + && loff.fill > 0)) { break; } n += loff.height; @@ -1661,7 +1661,7 @@ void scroll_cursor_bot(int min_scroll, int set_topbot) boff.fill = curwin->w_topfill; boff.lnum = curwin->w_topline - 1; int i; - for (i = 0; i < scrolled && boff.lnum < curwin->w_botline; ) { + for (i = 0; i < scrolled && boff.lnum < curwin->w_botline;) { botline_forw(curwin, &boff); i += boff.height; ++line_count; |