comparison src/ex_docmd.c @ 10357:59d01e335858 v8.0.0073

commit https://github.com/vim/vim/commit/459ca563128f2edb7e3bb190090bbb755a56dd55 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Nov 10 18:16:33 2016 +0100 patch 8.0.0073 Problem: More comparisons between firstwin and lastwin. Solution: Use ONE_WINDOW for consistency. (Hirohito Higashi)
author Christian Brabandt <cb@256bit.org>
date Thu, 10 Nov 2016 18:30:05 +0100
parents cf988222b150
children 147f45c283e1
comparison
equal deleted inserted replaced
10356:49b1b87c4802 10357:59d01e335858
7486 void 7486 void
7487 tabpage_close(int forceit) 7487 tabpage_close(int forceit)
7488 { 7488 {
7489 /* First close all the windows but the current one. If that worked then 7489 /* First close all the windows but the current one. If that worked then
7490 * close the last window in this tab, that will close it. */ 7490 * close the last window in this tab, that will close it. */
7491 if (lastwin != firstwin) 7491 if (!ONE_WINDOW)
7492 close_others(TRUE, forceit); 7492 close_others(TRUE, forceit);
7493 if (lastwin == firstwin) 7493 if (ONE_WINDOW)
7494 ex_win_close(forceit, curwin, NULL); 7494 ex_win_close(forceit, curwin, NULL);
7495 # ifdef FEAT_GUI 7495 # ifdef FEAT_GUI
7496 need_mouse_correct = TRUE; 7496 need_mouse_correct = TRUE;
7497 # endif 7497 # endif
7498 } 7498 }