aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_docmd.c
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-04-13 19:25:57 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-04-14 19:09:19 -0400
commit8f2175e7d052e219a68e75640cf6547251d335c2 (patch)
tree7627b5a68c2ae27683373eafff8832b29641b0c1 /src/nvim/ex_docmd.c
parentd81b510ecf1890828caa653ebb2fa053131f3265 (diff)
downloadrneovim-8f2175e7d052e219a68e75640cf6547251d335c2.tar.gz
rneovim-8f2175e7d052e219a68e75640cf6547251d335c2.tar.bz2
rneovim-8f2175e7d052e219a68e75640cf6547251d335c2.zip
vim-patch:8.0.0761: options not set properly for a terminal buffer
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. https://github.com/vim/vim/commit/1f2903c43109b16594d141a730659317b15f388d
Diffstat (limited to 'src/nvim/ex_docmd.c')
-rw-r--r--src/nvim/ex_docmd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c
index 4d958b201a..9fc047dde9 100644
--- a/src/nvim/ex_docmd.c
+++ b/src/nvim/ex_docmd.c
@@ -6920,10 +6920,11 @@ static void ex_resize(exarg_T *eap)
n = 9999;
win_setwidth_win(n, wp);
} else {
- if (*eap->arg == '-' || *eap->arg == '+')
+ 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(n, wp);
}
}