diff options
author | KillTheMule <KillTheMule@users.noreply.github.com> | 2016-04-23 23:00:59 +0200 |
---|---|---|
committer | KillTheMule <KillTheMule@users.noreply.github.com> | 2016-04-23 23:43:39 +0200 |
commit | 23e8d6d94b74c7b6d4e4c766e34500ff220abe96 (patch) | |
tree | 3f123ab5a045953af2a8985385df30be78f1fa96 /src/nvim/normal.c | |
parent | 445f0d7eed7c96aa30780622e6ee437794529547 (diff) | |
download | rneovim-23e8d6d94b74c7b6d4e4c766e34500ff220abe96.tar.gz rneovim-23e8d6d94b74c7b6d4e4c766e34500ff220abe96.tar.bz2 rneovim-23e8d6d94b74c7b6d4e4c766e34500ff220abe96.zip |
Linting.
Diffstat (limited to 'src/nvim/normal.c')
-rw-r--r-- | src/nvim/normal.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/nvim/normal.c b/src/nvim/normal.c index 103e6b5027..237e53c5a4 100644 --- a/src/nvim/normal.c +++ b/src/nvim/normal.c @@ -2599,8 +2599,9 @@ do_mouse ( else end_visual.col = rightcol; if (curwin->w_cursor.lnum >= - (start_visual.lnum + end_visual.lnum) / 2) + (start_visual.lnum + end_visual.lnum) / 2) { end_visual.lnum = start_visual.lnum; + } /* move VIsual to the right column */ start_visual = curwin->w_cursor; /* save the cursor pos */ @@ -3242,7 +3243,7 @@ void clear_showcmd(void) top = curwin->w_cursor.lnum; bot = VIsual.lnum; } - /* Include closed folds as a whole. */ + // Include closed folds as a whole. (void)hasFolding(top, &top, NULL); (void)hasFolding(bot, NULL, &bot); lines = bot - top + 1; @@ -5150,9 +5151,10 @@ static void nv_gotofile(cmdarg_T *cap) ptr = grab_file_name(cap->count1, &lnum); if (ptr != NULL) { - /* do autowrite if necessary */ - if (curbufIsChanged() && curbuf->b_nwindows <= 1 && !P_HID(curbuf)) + // do autowrite if necessary + if (curbufIsChanged() && curbuf->b_nwindows <= 1 && !P_HID(curbuf)) { (void)autowrite(curbuf, false); + } setpcmark(); (void)do_ecmd(0, ptr, NULL, NULL, ECMD_LAST, P_HID(curbuf) ? ECMD_HIDE : 0, curwin); |