summaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-08-29 22:44:59 +0200
committerBram Moolenaar <Bram@vim.org>2017-08-29 22:44:59 +0200
commite561a7e2fa511d643c9692d26f4cf65378fd1983 (patch)
treecf6dc86878bcd2fa7a9d8baf467e66e3427f390c /src/buffer.c
parent48340b62e812dc9280f621a2eb6db76d43555c66 (diff)
patch 8.0.1013: terminal window behaves different from a buffer with changesv8.0.1013
Problem: A terminal window with a running job behaves different from a window containing a changed buffer. Solution: Do not set 'bufhidden' to "hide". Fix that a buffer where a terminal used to run is listed as "[Scratch]".
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buffer.c b/src/buffer.c
index f64255d785..e95abfa5af 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -5825,8 +5825,8 @@ buf_spname(buf_T *buf)
if (buf->b_term != NULL)
return term_get_status_text(buf->b_term);
#endif
- if (buf->b_sfname != NULL)
- return buf->b_sfname;
+ if (buf->b_fname != NULL)
+ return buf->b_fname;
return (char_u *)_("[Scratch]");
}