diff options
Diffstat (limited to 'src/window.c')
-rw-r--r-- | src/window.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/window.c b/src/window.c index c4cd31a71..4d09ad679 100644 --- a/src/window.c +++ b/src/window.c @@ -340,10 +340,10 @@ newwindow: { tabpage_T *oldtab = curtab; tabpage_T *newtab; - win_T *wp = curwin; /* First create a new tab with the window, then go back to * the old tab and close the window there. */ + wp = curwin; if (win_new_tabpage((int)Prenum) == OK && valid_tabpage(oldtab)) { |