Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
16777:20d51e99dd6a | 16778:eda4d65f232c |
---|---|
454 void | 454 void |
455 close_buffer( | 455 close_buffer( |
456 win_T *win, /* if not NULL, set b_last_cursor */ | 456 win_T *win, /* if not NULL, set b_last_cursor */ |
457 buf_T *buf, | 457 buf_T *buf, |
458 int action, | 458 int action, |
459 int abort_if_last UNUSED) | 459 int abort_if_last) |
460 { | 460 { |
461 int is_curbuf; | 461 int is_curbuf; |
462 int nwindows; | 462 int nwindows; |
463 bufref_T bufref; | 463 bufref_T bufref; |
464 int is_curwin = (curwin != NULL && curwin->w_buffer == buf); | 464 int is_curwin = (curwin != NULL && curwin->w_buffer == buf); |
5676 * Return TRUE if "buf" is a prompt buffer. | 5676 * Return TRUE if "buf" is a prompt buffer. |
5677 */ | 5677 */ |
5678 int | 5678 int |
5679 bt_prompt(buf_T *buf) | 5679 bt_prompt(buf_T *buf) |
5680 { | 5680 { |
5681 return buf != NULL && buf->b_p_bt[0] == 'p'; | 5681 return buf != NULL && buf->b_p_bt[0] == 'p' && buf->b_p_bt[1] == 'r'; |
5682 } | |
5683 | |
5684 /* | |
5685 * Return TRUE if "buf" is a buffer for a popup window. | |
5686 */ | |
5687 int | |
5688 bt_popup(buf_T *buf) | |
5689 { | |
5690 return buf != NULL && buf->b_p_bt != NULL | |
5691 && buf->b_p_bt[0] == 'p' && buf->b_p_bt[1] == 'o'; | |
5682 } | 5692 } |
5683 | 5693 |
5684 /* | 5694 /* |
5685 * Return TRUE if "buf" is a "nofile", "acwrite", "terminal" or "prompt" | 5695 * Return TRUE if "buf" is a "nofile", "acwrite", "terminal" or "prompt" |
5686 * buffer. This means the buffer name is not a file name. | 5696 * buffer. This means the buffer name is not a file name. |