aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_cmds.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2015-12-13 01:45:17 -0500
committerJustin M. Keyes <justinkz@gmail.com>2015-12-13 01:45:17 -0500
commitc3e4e0e383401bdd0ac9cac4b81e1c4e160be166 (patch)
tree8b459de07b42b958e9129295e0373255a5be1d16 /src/nvim/ex_cmds.c
parentcd1be8350dd8fcc317cf1c618770b2bbdd4b94d5 (diff)
parentd1ec3f661a02dd0ea6d7fbf371a16aae336d1e78 (diff)
downloadrneovim-c3e4e0e383401bdd0ac9cac4b81e1c4e160be166.tar.gz
rneovim-c3e4e0e383401bdd0ac9cac4b81e1c4e160be166.tar.bz2
rneovim-c3e4e0e383401bdd0ac9cac4b81e1c4e160be166.zip
Merge pull request #3837 from Shougo/vim-7.4.645
vim-patch:7.4.645
Diffstat (limited to 'src/nvim/ex_cmds.c')
-rw-r--r--src/nvim/ex_cmds.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c
index 3f19421a75..d902234ef7 100644
--- a/src/nvim/ex_cmds.c
+++ b/src/nvim/ex_cmds.c
@@ -2112,7 +2112,6 @@ do_ecmd (
goto theend;
if (buf->b_ml.ml_mfp == NULL) { /* no memfile yet */
oldbuf = FALSE;
- buf->b_nwindows = 0;
} else { /* existing memfile */
oldbuf = TRUE;
(void)buf_check_timestamp(buf, FALSE);
@@ -2138,7 +2137,7 @@ do_ecmd (
* Make the (new) buffer the one used by the current window.
* If the old buffer becomes unused, free it if ECMD_HIDE is FALSE.
* If the current buffer was empty and has no file name, curbuf
- * is returned by buflist_new().
+ * is returned by buflist_new(), nothing to do here.
*/
if (buf != curbuf) {
/*
@@ -2225,8 +2224,7 @@ do_ecmd (
}
xfree(new_name);
au_new_curbuf = NULL;
- } else
- ++curbuf->b_nwindows;
+ }
curwin->w_pcmark.lnum = 1;
curwin->w_pcmark.col = 0;