This commit is contained in:
James McCoy
2017-03-11 00:26:44 -05:00
parent 2ed2b1d505
commit d72c177b2a
9 changed files with 78 additions and 81 deletions

View File

@@ -5853,12 +5853,12 @@ static void ex_close(exarg_T *eap)
{
win_T *win = NULL;
int winnr = 0;
if (cmdwin_type != 0)
if (cmdwin_type != 0) {
cmdwin_result = Ctrl_C;
else if (!text_locked() && !curbuf_locked()) {
if (eap->addr_count == 0)
} else if (!text_locked() && !curbuf_locked()) {
if (eap->addr_count == 0) {
ex_win_close(eap->forceit, curwin, NULL);
else {
} else {
FOR_ALL_WINDOWS_IN_TAB(wp, curtab) {
winnr++;
if (winnr == eap->line2) {