mirror of
https://github.com/neovim/neovim.git
synced 2025-09-13 06:48:17 +00:00
vim-patch:8.0.0768: terminal window status shows "[Scratch]"
Problem: Terminal window status shows "[Scratch]".
Solution: Show "[Terminal]" when no title was set. (Yasuhiro Matsumoto)
Store the terminal title that vterm sends and use it. Update the
special buffer name. (closes vim/vim#1869)
2155441460
This commit is contained in:
@@ -5211,8 +5211,8 @@ char_u *buf_spname(buf_T *buf)
|
|||||||
return (char_u *)_(msg_qflist);
|
return (char_u *)_(msg_qflist);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* There is no _file_ when 'buftype' is "nofile", b_sfname
|
// There is no _file_ when 'buftype' is "nofile", b_sfname
|
||||||
* contains the name as specified by the user */
|
// contains the name as specified by the user.
|
||||||
if (bt_nofile(buf)) {
|
if (bt_nofile(buf)) {
|
||||||
if (buf->b_sfname != NULL) {
|
if (buf->b_sfname != NULL) {
|
||||||
return buf->b_sfname;
|
return buf->b_sfname;
|
||||||
|
Reference in New Issue
Block a user