mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 8.1.0230: directly checking 'buftype' value
Problem: Directly checking 'buftype' value. Solution: Add the bt_normal() function. (Yegappan Lakshmanan)
This commit is contained in:
@@ -5626,6 +5626,15 @@ write_viminfo_bufferlist(FILE *fp)
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Return TRUE if "buf" is a normal buffer, 'buftype' is empty.
|
||||
*/
|
||||
int
|
||||
bt_normal(buf_T *buf)
|
||||
{
|
||||
return buf != NULL && buf->b_p_bt[0] == NUL;
|
||||
}
|
||||
|
||||
/*
|
||||
* Return TRUE if "buf" is the quickfix buffer.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user