diff src/fileio.c @ 14433:4a94173743d9 v8.1.0230

patch 8.1.0230: directly checking 'buftype' value commit https://github.com/vim/vim/commit/91335e5a67aaa9937e65f1e779b9f3f10fd33ee4 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Aug 1 17:53:12 2018 +0200 patch 8.1.0230: directly checking 'buftype' value Problem: Directly checking 'buftype' value. Solution: Add the bt_normal() function. (Yegappan Lakshmanan)
author Christian Brabandt <cb@256bit.org>
date Wed, 01 Aug 2018 18:00:07 +0200
parents 977cab3d5474
children dddba3937532
line wrap: on
line diff
--- 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