summaryrefslogtreecommitdiff
path: root/src/terminal.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-08-29 22:44:59 +0200
committerBram Moolenaar <Bram@vim.org>2017-08-29 22:44:59 +0200
commite561a7e2fa511d643c9692d26f4cf65378fd1983 (patch)
treecf6dc86878bcd2fa7a9d8baf467e66e3427f390c /src/terminal.c
parent48340b62e812dc9280f621a2eb6db76d43555c66 (diff)
downloadvim-git-e561a7e2fa511d643c9692d26f4cf65378fd1983.tar.gz
patch 8.0.1013: terminal window behaves different from a buffer with changesv8.0.1013
Problem: A terminal window with a running job behaves different from a window containing a changed buffer. Solution: Do not set 'bufhidden' to "hide". Fix that a buffer where a terminal used to run is listed as "[Scratch]".
Diffstat (limited to 'src/terminal.c')
-rw-r--r--src/terminal.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/terminal.c b/src/terminal.c
index 288ad28eb..b2a3e7f3d 100644
--- a/src/terminal.c
+++ b/src/terminal.c
@@ -44,10 +44,7 @@
* - add test for giving error for invalid 'termsize' value.
* - support minimal size when 'termsize' is "rows*cols".
* - support minimal size when 'termsize' is empty?
- * - do not set bufhidden to "hide"? works like a buffer with changes.
- * document that CTRL-W :hide can be used.
* - GUI: when using tabs, focus in terminal, click on tab does not work.
- * - When $HOME was set by Vim (MS-Windows), do not pass it to the job.
* - GUI: when 'confirm' is set and trying to exit Vim, dialog offers to save
* changes to "!shell".
* (justrajdeep, 2017 Aug 22)
@@ -399,10 +396,6 @@ term_start(typval_T *argvar, jobopt_T *opt, int forceit)
* the job finished. */
curbuf->b_p_ma = FALSE;
- /* Set 'bufhidden' to "hide": allow closing the window. */
- set_string_option_direct((char_u *)"bufhidden", -1,
- (char_u *)"hide", OPT_FREE|OPT_LOCAL, 0);
-
set_term_and_win_size(term);
setup_job_options(opt, term->tl_rows, term->tl_cols);