aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/mouse.c
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2016-05-01 20:35:51 +0300
committerZyX <kp-pav@yandex.ru>2016-05-01 20:35:51 +0300
commitcf4e1fb0f4962319eee292248d9c1f73be3a8d0c (patch)
tree60b1d2aad6205c74b7c2611fbbed45759a302f4f /src/nvim/mouse.c
parenta1f985f60a228604970a70872b7ea1fb5299eba3 (diff)
downloadrneovim-cf4e1fb0f4962319eee292248d9c1f73be3a8d0c.tar.gz
rneovim-cf4e1fb0f4962319eee292248d9c1f73be3a8d0c.tar.bz2
rneovim-cf4e1fb0f4962319eee292248d9c1f73be3a8d0c.zip
*: 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.
Diffstat (limited to 'src/nvim/mouse.c')
-rw-r--r--src/nvim/mouse.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/mouse.c b/src/nvim/mouse.c
index 4611b69424..2f499e477c 100644
--- a/src/nvim/mouse.c
+++ b/src/nvim/mouse.c
@@ -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