diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-05-31 16:04:42 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-05-31 16:04:42 +0200 |
commit | b10090928cb5283f867e8457b7eea0985470d8d4 (patch) | |
tree | 4bfeb73e7a4238f26b31f34e52657143769a4a85 /src/terminal.c | |
parent | cfb4b47de08e4437c692d382067dc1692cd83c23 (diff) | |
download | vim-git-b10090928cb5283f867e8457b7eea0985470d8d4.tar.gz |
patch 8.2.0862: ":term ++curwin" makes the current buffer hiddenv8.2.0862
Problem: ":term ++curwin" makes the current buffer hidden. (Harm te
Hennepe)
Solution: Do not hide the current buffer. (closes #6170)
Diffstat (limited to 'src/terminal.c')
-rw-r--r-- | src/terminal.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/terminal.c b/src/terminal.c index 86a1a0fc3..5514c73ea 100644 --- a/src/terminal.c +++ b/src/terminal.c @@ -459,9 +459,9 @@ term_start( return NULL; } if (do_ecmd(0, NULL, NULL, &split_ea, ECMD_ONE, - ECMD_HIDE - + ((flags & TERM_START_FORCEIT) ? ECMD_FORCEIT : 0), - curwin) == FAIL) + (buf_hide(curwin->w_buffer) ? ECMD_HIDE : 0) + + ((flags & TERM_START_FORCEIT) ? ECMD_FORCEIT : 0), + curwin) == FAIL) { vim_free(term); return NULL; |