mirror of
https://github.com/neovim/neovim.git
synced 2024-12-31 17:13:26 -07:00
vim-patch:8.0.0935: cannot recognize a terminal buffer in :ls output
Problem: Cannot recognize a terminal buffer in :ls output.
Solution: Use R for a running job and F for a finished job.
304b64c9e6
This commit is contained in:
parent
a924650d98
commit
59b35d6a10
@ -2605,14 +2605,22 @@ void buflist_list(exarg_T *eap)
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const int changed_char = (buf->b_flags & BF_READERR)
|
||||||
|
? 'x'
|
||||||
|
: (bufIsChanged(buf) ? '+' : ' ');
|
||||||
|
const int ro_char = !MODIFIABLE(buf)
|
||||||
|
? '-'
|
||||||
|
: (buf->b_p_ro ? '=' : ' ');
|
||||||
|
|
||||||
msg_putchar('\n');
|
msg_putchar('\n');
|
||||||
len = vim_snprintf((char *)IObuff, IOSIZE - 20, "%3d%c%c%c%c%c \"%s\"",
|
len = vim_snprintf(
|
||||||
|
(char *)IObuff, IOSIZE - 20, "%3d%c%c%c%c%c \"%s\"",
|
||||||
buf->b_fnum,
|
buf->b_fnum,
|
||||||
buf->b_p_bl ? ' ' : 'u',
|
buf->b_p_bl ? ' ' : 'u',
|
||||||
buf == curbuf ? '%' : (curwin->w_alt_fnum == buf->b_fnum ? '#' : ' '),
|
buf == curbuf ? '%' : (curwin->w_alt_fnum == buf->b_fnum ? '#' : ' '),
|
||||||
buf->b_ml.ml_mfp == NULL ? ' ' : (buf->b_nwindows == 0 ? 'h' : 'a'),
|
buf->b_ml.ml_mfp == NULL ? ' ' : (buf->b_nwindows == 0 ? 'h' : 'a'),
|
||||||
!MODIFIABLE(buf) ? '-' : (buf->b_p_ro ? '=' : ' '),
|
ro_char,
|
||||||
(buf->b_flags & BF_READERR) ? 'x' : (bufIsChanged(buf) ? '+' : ' '),
|
changed_char,
|
||||||
NameBuff);
|
NameBuff);
|
||||||
|
|
||||||
if (len > IOSIZE - 20) {
|
if (len > IOSIZE - 20) {
|
||||||
|
Loading…
Reference in New Issue
Block a user