diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-10-02 22:43:59 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-02 22:43:59 -0700 |
commit | 30479417e808eac338025dbbfbd3724e158fb344 (patch) | |
tree | a8f0e660fc18436506f323d0e2be0eb3236485b6 /src/nvim/buffer.c | |
parent | b069e9b20f9e1f24fde34bee7d6e5d95f47ef10d (diff) | |
parent | 4518f230fa84e66737f6fc313fb669984974a1fd (diff) | |
download | rneovim-30479417e808eac338025dbbfbd3724e158fb344.tar.gz rneovim-30479417e808eac338025dbbfbd3724e158fb344.tar.bz2 rneovim-30479417e808eac338025dbbfbd3724e158fb344.zip |
Merge #11087 from janlazo/vim-8.1.0010
vim-patch:8.1.{10,230,315,330,514,517,518,1327,1347,1758,2072,2074,2091,2095,2103}
Diffstat (limited to 'src/nvim/buffer.c')
-rw-r--r-- | src/nvim/buffer.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c index b50c764ac3..e5b80693a4 100644 --- a/src/nvim/buffer.c +++ b/src/nvim/buffer.c @@ -5179,6 +5179,13 @@ bool bt_help(const buf_T *const buf) return buf != NULL && buf->b_help; } +// Return true if "buf" is a normal buffer, 'buftype' is empty. +bool bt_normal(const buf_T *const buf) + FUNC_ATTR_PURE FUNC_ATTR_WARN_UNUSED_RESULT +{ + return buf != NULL && buf->b_p_bt[0] == NUL; +} + // Return true if "buf" is the quickfix buffer. bool bt_quickfix(const buf_T *const buf) FUNC_ATTR_PURE FUNC_ATTR_WARN_UNUSED_RESULT |