diff options
author | Lewis Russell <lewis6991@gmail.com> | 2022-08-16 12:26:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-16 12:26:08 +0100 |
commit | 542fa8a9cc10abb8eddab25a19844d19b94f53c1 (patch) | |
tree | fa29fc00d016beaddd5893336c19d12757e16494 /src/nvim/mouse.c | |
parent | 9a4b8dc603fb9f5a804d69951848e0ff75d0905f (diff) | |
download | rneovim-542fa8a9cc10abb8eddab25a19844d19b94f53c1.tar.gz rneovim-542fa8a9cc10abb8eddab25a19844d19b94f53c1.tar.bz2 rneovim-542fa8a9cc10abb8eddab25a19844d19b94f53c1.zip |
refactor: change pre-decrement/increment to post (#19799)
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
Diffstat (limited to 'src/nvim/mouse.c')
-rw-r--r-- | src/nvim/mouse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/mouse.c b/src/nvim/mouse.c index a4a521fa80..41afc71a14 100644 --- a/src/nvim/mouse.c +++ b/src/nvim/mouse.c @@ -386,7 +386,7 @@ retnomove: count = 0; for (first = true; curwin->w_topline < curbuf->b_ml.ml_line_count;) { if (curwin->w_topfill > 0) { - ++count; + count++; } else { count += plines_win(curwin, curwin->w_topline, true); } @@ -514,7 +514,7 @@ bool mouse_comp_pos(win_T *win, int *rowp, int *colp, linenr_T *lnump) break; // past end of file } row -= count; - ++lnum; + lnum++; } if (!retval) { |