mirror of
https://github.com/neovim/neovim.git
synced 2025-09-13 06:48:17 +00:00
*: Fix new linter errors
Originally there were 128 new errors, so I thought this is a good idea to fix all of them. Of course, this commit also fixes many suppressed errors.
This commit is contained in:
@@ -535,9 +535,9 @@ static linenr_T find_longest_lnum(void)
|
||||
// Calculate maximum for horizontal scrollbar. Check for reasonable
|
||||
// line numbers, topline and botline can be invalid when displaying is
|
||||
// postponed.
|
||||
if (curwin->w_topline <= curwin->w_cursor.lnum &&
|
||||
curwin->w_botline > curwin->w_cursor.lnum &&
|
||||
curwin->w_botline <= curbuf->b_ml.ml_line_count + 1) {
|
||||
if (curwin->w_topline <= curwin->w_cursor.lnum
|
||||
&& curwin->w_botline > curwin->w_cursor.lnum
|
||||
&& curwin->w_botline <= curbuf->b_ml.ml_line_count + 1) {
|
||||
long max = 0;
|
||||
|
||||
// Use maximum of all visible lines. Remember the lnum of the
|
||||
|
Reference in New Issue
Block a user