diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-06-15 19:37:15 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-06-15 19:37:15 +0200 |
commit | 26910de8b0da6abab87bd5a397330f9cbe483309 (patch) | |
tree | 5a76a713818d0973f6774edabc17b8c13fb924fb /src/fileio.c | |
parent | 0331faf71200a274377e1569fcda4f00c9cf3e2a (diff) | |
download | vim-git-26910de8b0da6abab87bd5a397330f9cbe483309.tar.gz |
patch 8.1.1547: functionality of bt_nofile() is confusingv8.1.1547
Problem: Functionality of bt_nofile() is confusing.
Solution: Split into bt_nofile() and bt_nofilename().
Diffstat (limited to 'src/fileio.c')
-rw-r--r-- | src/fileio.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/fileio.c b/src/fileio.c index e6fb6bfae..03183255e 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -3160,7 +3160,7 @@ buf_write( && whole && buf == curbuf #ifdef FEAT_QUICKFIX - && !bt_nofile(buf) + && !bt_nofilename(buf) #endif && !filtering && (!append || vim_strchr(p_cpo, CPO_FNAMEAPP) != NULL) @@ -3237,7 +3237,7 @@ buf_write( sfname, sfname, FALSE, curbuf, eap))) { #ifdef FEAT_QUICKFIX - if (overwriting && bt_nofile(curbuf)) + if (overwriting && bt_nofilename(curbuf)) nofile_err = TRUE; else #endif @@ -3270,7 +3270,7 @@ buf_write( else { #ifdef FEAT_QUICKFIX - if (overwriting && bt_nofile(curbuf)) + if (overwriting && bt_nofilename(curbuf)) nofile_err = TRUE; else #endif @@ -3284,7 +3284,7 @@ buf_write( sfname, sfname, FALSE, curbuf, eap))) { #ifdef FEAT_QUICKFIX - if (overwriting && bt_nofile(curbuf)) + if (overwriting && bt_nofilename(curbuf)) nofile_err = TRUE; else #endif @@ -6083,7 +6083,7 @@ shorten_buf_fname(buf_T *buf, char_u *dirname, int force) if (buf->b_fname != NULL #ifdef FEAT_QUICKFIX - && !bt_nofile(buf) + && !bt_nofilename(buf) #endif && !path_with_url(buf->b_fname) && (force |