diff options
Diffstat (limited to 'src/buffer.c')
| -rw-r--r-- | src/buffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buffer.c b/src/buffer.c index f64255d78..e95abfa5a 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]"); } |
