mirror of
https://github.com/neovim/neovim.git
synced 2026-04-23 15:55:36 +00:00
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.
1f2903c431
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3174,6 +3174,12 @@ int bt_quickfix(const buf_T *const buf)
|
||||
return buf != NULL && buf->b_p_bt[0] == 'q';
|
||||
}
|
||||
|
||||
// Return true if "buf" is a terminal buffer.
|
||||
bool bt_terminal(const buf_T *buf)
|
||||
{
|
||||
return buf != NULL && buf->b_p_bt[0] == 't';
|
||||
}
|
||||
|
||||
// Return TRUE if "buf" is a "nofile", "acwrite" or "terminal" buffer.
|
||||
// This means the buffer name is not a file name.
|
||||
int bt_nofile(buf_T *buf)
|
||||
|
||||
Reference in New Issue
Block a user