diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-04-16 03:00:18 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-04-23 00:03:48 -0400 |
commit | 439bbe00ece4c2f50fec453fc9b3c92d075b2431 (patch) | |
tree | 997e71cd659cfdbfc4f818dbf98ff3c226251102 /src/nvim/buffer.c | |
parent | 3bc8639c1a92dac8a1bc9c71c74129bd1eba8269 (diff) | |
download | rneovim-439bbe00ece4c2f50fec453fc9b3c92d075b2431.tar.gz rneovim-439bbe00ece4c2f50fec453fc9b3c92d075b2431.tar.bz2 rneovim-439bbe00ece4c2f50fec453fc9b3c92d075b2431.zip |
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)
https://github.com/vim/vim/commit/2155441460a6dc0a72125f7860507693112a1460
Diffstat (limited to 'src/nvim/buffer.c')
-rw-r--r-- | src/nvim/buffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c index d628c517bb..c8ed7d0b37 100644 --- a/src/nvim/buffer.c +++ b/src/nvim/buffer.c @@ -5211,8 +5211,8 @@ char_u *buf_spname(buf_T *buf) return (char_u *)_(msg_qflist); } } - /* There is no _file_ when 'buftype' is "nofile", b_sfname - * contains the name as specified by the user */ + // There is no _file_ when 'buftype' is "nofile", b_sfname + // contains the name as specified by the user. if (bt_nofile(buf)) { if (buf->b_sfname != NULL) { return buf->b_sfname; |