summaryrefslogtreecommitdiff
path: root/src/fileio.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-08-01 17:53:12 +0200
committerBram Moolenaar <Bram@vim.org>2018-08-01 17:53:12 +0200
commit91335e5a67aaa9937e65f1e779b9f3f10fd33ee4 (patch)
treeab7a421b7c2dda741870488578e857c237adf517 /src/fileio.c
parentd2855f5454c5c6c5f786b228c5b67757edfefcb1 (diff)
downloadvim-git-91335e5a67aaa9937e65f1e779b9f3f10fd33ee4.tar.gz
patch 8.1.0230: directly checking 'buftype' valuev8.1.0230
Problem: Directly checking 'buftype' value. Solution: Add the bt_normal() function. (Yegappan Lakshmanan)
Diffstat (limited to 'src/fileio.c')
-rw-r--r--src/fileio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fileio.c b/src/fileio.c
index 07b241ece..281191cfb 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -6897,7 +6897,7 @@ buf_check_timestamp(
* this buffer. */
if (buf->b_ffname == NULL
|| buf->b_ml.ml_mfp == NULL
- || *buf->b_p_bt != NUL
+ || !bt_normal(buf)
|| buf->b_saving
|| busy
#ifdef FEAT_NETBEANS_INTG