diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-09-29 09:29:16 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-10-01 22:27:45 -0400 |
commit | 655085204e36cdf91750db5e09ae3feb4884c670 (patch) | |
tree | b07fd88bd650fec2746b86d248bfd0f3f44b8415 /src/nvim/fileio.c | |
parent | 8b67c8f8c6538f22c6b6868a2603109b6670874e (diff) | |
download | rneovim-655085204e36cdf91750db5e09ae3feb4884c670.tar.gz rneovim-655085204e36cdf91750db5e09ae3feb4884c670.tar.bz2 rneovim-655085204e36cdf91750db5e09ae3feb4884c670.zip |
vim-patch:8.1.0230: directly checking 'buftype' value
Problem: Directly checking 'buftype' value.
Solution: Add the bt_normal() function. (Yegappan Lakshmanan)
https://github.com/vim/vim/commit/91335e5a67aaa9937e65f1e779b9f3f10fd33ee4
Diffstat (limited to 'src/nvim/fileio.c')
-rw-r--r-- | src/nvim/fileio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/fileio.c b/src/nvim/fileio.c index 4cf42b41e9..0394639a16 100644 --- a/src/nvim/fileio.c +++ b/src/nvim/fileio.c @@ -4834,7 +4834,7 @@ buf_check_timestamp( if (buf->terminal || buf->b_ffname == NULL || buf->b_ml.ml_mfp == NULL - || *buf->b_p_bt != NUL + || !bt_normal(buf) || buf->b_saving || busy ) |