summaryrefslogtreecommitdiffstats
path: root/src/ex_docmd.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-07-23 19:51:01 +0200
committerBram Moolenaar <Bram@vim.org>2017-07-23 19:51:01 +0200
commit1f2903c43109b16594d141a730659317b15f388d (patch)
tree35ce24b99f05f54f9f51d6f3e8ed21417787019c /src/ex_docmd.c
parent065f41c8143271d1af7c8f5d14a59e29bf7ecdf3 (diff)
patch 8.0.0761: options not set properly for a terminal bufferv8.0.0761
Problem: Options of a buffer for a terminal window are not set properly. Solution: Add "terminal" value for 'buftype'. Make 'buftype' and 'bufhidden' not depend on the quickfix feature. Also set the buffer name and show "running" or "finished" in the window title.
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r--src/ex_docmd.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
index 8f427cfde0..506a8088d9 100644
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -8548,7 +8548,7 @@ ex_resize(exarg_T *eap)
{
if (*eap->arg == '-' || *eap->arg == '+')
n += curwin->w_height;
- else if (n == 0 && eap->arg[0] == NUL) /* default is very wide */
+ else if (n == 0 && eap->arg[0] == NUL) /* default is very high */
n = 9999;
win_setheight_win((int)n, wp);
}
@@ -11679,10 +11679,7 @@ put_view(
*/
if ((*flagp & SSOP_FOLDS)
&& wp->w_buffer->b_ffname != NULL
-# ifdef FEAT_QUICKFIX
- && (*wp->w_buffer->b_p_bt == NUL || wp->w_buffer->b_help)
-# endif
- )
+ && (*wp->w_buffer->b_p_bt == NUL || wp->w_buffer->b_help))
{
if (put_folds(fd, wp) == FAIL)
return FAIL;