diff options
author | Grzegorz Milka <grzegorzmilka@gmail.com> | 2016-10-23 00:56:15 +0200 |
---|---|---|
committer | Grzegorz Milka <grzegorzmilka@gmail.com> | 2016-10-23 01:17:39 +0200 |
commit | d357a42389752b5270cf590b2f078f836de6c736 (patch) | |
tree | 4d7385d3171a7c63e2ab152a4e781fe49e29fe62 /src/nvim/buffer.c | |
parent | 9755a2ffd5727c7fc0576e60a21368618978c504 (diff) | |
download | rneovim-d357a42389752b5270cf590b2f078f836de6c736.tar.gz rneovim-d357a42389752b5270cf590b2f078f836de6c736.tar.bz2 rneovim-d357a42389752b5270cf590b2f078f836de6c736.zip |
Fix lint errors.
Diffstat (limited to 'src/nvim/buffer.c')
-rw-r--r-- | src/nvim/buffer.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c index fc6e46cf64..e6a7950d53 100644 --- a/src/nvim/buffer.c +++ b/src/nvim/buffer.c @@ -324,12 +324,13 @@ void close_buffer(win_T *win, buf_T *buf, int action, int abort_if_last) } if (win_valid_any_tab(win)) { - /* Set b_last_cursor when closing the last window for the buffer. - * Remember the last cursor position and window options of the buffer. - * This used to be only for the current window, but then options like - * 'foldmethod' may be lost with a ":only" command. */ - if (buf->b_nwindows == 1) + // Set b_last_cursor when closing the last window for the buffer. + // Remember the last cursor position and window options of the buffer. + // This used to be only for the current window, but then options like + // 'foldmethod' may be lost with a ":only" command. + if (buf->b_nwindows == 1) { set_last_cursor(win); + } buflist_setfpos(buf, win, win->w_cursor.lnum == 1 ? 0 : win->w_cursor.lnum, win->w_cursor.col, TRUE); @@ -517,8 +518,9 @@ void buf_freeall(buf_T *buf, int flags) goto_tabpage_win(the_curtab, the_curwin); unblock_autocmds(); } - if (aborting()) /* autocmds may abort script processing */ + if (aborting()) { // autocmds may abort script processing return; + } /* * It's possible that autocommands change curbuf to the one being deleted. |