Mercurial > vim
diff src/buffer.c @ 16778:eda4d65f232c v8.1.1391
patch 8.1.1391: no popup window support
commit https://github.com/vim/vim/commit/4d784b21d14fc66e98a2b07f70343cdd4acd62aa
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat May 25 19:51:39 2019 +0200
patch 8.1.1391: no popup window support
Problem: No popup window support.
Solution: Add initial code for popup windows. Add the 'wincolor' option.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 25 May 2019 20:00:08 +0200 |
parents | 695d9ef00b03 |
children | ce04ebdf26b8 |
line wrap: on
line diff
--- a/src/buffer.c +++ b/src/buffer.c @@ -456,7 +456,7 @@ close_buffer( win_T *win, /* if not NULL, set b_last_cursor */ buf_T *buf, int action, - int abort_if_last UNUSED) + int abort_if_last) { int is_curbuf; int nwindows; @@ -5678,7 +5678,17 @@ bt_help(buf_T *buf) int bt_prompt(buf_T *buf) { - return buf != NULL && buf->b_p_bt[0] == 'p'; + return buf != NULL && buf->b_p_bt[0] == 'p' && buf->b_p_bt[1] == 'r'; +} + +/* + * Return TRUE if "buf" is a buffer for a popup window. + */ + int +bt_popup(buf_T *buf) +{ + return buf != NULL && buf->b_p_bt != NULL + && buf->b_p_bt[0] == 'p' && buf->b_p_bt[1] == 'o'; } /*