comparison src/terminal.c @ 20617:c81f61e3b508 v8.2.0862

patch 8.2.0862: ":term ++curwin" makes the current buffer hidden Commit: https://github.com/vim/vim/commit/b10090928cb5283f867e8457b7eea0985470d8d4 Author: Bram Moolenaar <Bram@vim.org> Date: Sun May 31 16:04:42 2020 +0200 patch 8.2.0862: ":term ++curwin" makes the current buffer hidden Problem: ":term ++curwin" makes the current buffer hidden. (Harm te Hennepe) Solution: Do not hide the current buffer. (closes #6170)
author Bram Moolenaar <Bram@vim.org>
date Sun, 31 May 2020 16:15:03 +0200
parents d571231175b4
children 9064044fd4f6
comparison
equal deleted inserted replaced
20616:3c58d3e60e98 20617:c81f61e3b508
457 no_write_message(); 457 no_write_message();
458 vim_free(term); 458 vim_free(term);
459 return NULL; 459 return NULL;
460 } 460 }
461 if (do_ecmd(0, NULL, NULL, &split_ea, ECMD_ONE, 461 if (do_ecmd(0, NULL, NULL, &split_ea, ECMD_ONE,
462 ECMD_HIDE 462 (buf_hide(curwin->w_buffer) ? ECMD_HIDE : 0)
463 + ((flags & TERM_START_FORCEIT) ? ECMD_FORCEIT : 0), 463 + ((flags & TERM_START_FORCEIT) ? ECMD_FORCEIT : 0),
464 curwin) == FAIL) 464 curwin) == FAIL)
465 { 465 {
466 vim_free(term); 466 vim_free(term);
467 return NULL; 467 return NULL;
468 } 468 }
469 } 469 }