|
1 |
| -*popup.txt* For Vim version 9.1. Last change: 2024 Jun 08 |
| 1 | +*popup.txt* For Vim version 9.1. Last change: 2024 Jun 16 |
2 | 2 |
|
3 | 3 |
|
4 | 4 | VIM REFERENCE MANUAL by Bram Moolenaar
|
@@ -186,6 +186,7 @@ Manipulating a popup window:
|
186 | 186 | |popup_move()| change the position and size of a popup
|
187 | 187 | |popup_setoptions()| override options of a popup
|
188 | 188 | |popup_settext()| replace the popup buffer contents
|
| 189 | + |popup_setbuf()| set the buffer for the popup window |
189 | 190 |
|
190 | 191 | Closing popup windows:
|
191 | 192 | |popup_close()| close one popup
|
@@ -574,6 +575,18 @@ popup_notification({what}, {options}) *popup_notification()*
|
574 | 575 | Return type: |Number|
|
575 | 576 |
|
576 | 577 |
|
| 578 | +popup_setbuf({id}, {buf}) *popup_setbuf()* |
| 579 | + Set buffer {buf} to be displayed in popup win {id}. For the |
| 580 | + use of {buf}, see |bufname()| function. |
| 581 | + May change window size or position to adjust for the size |
| 582 | + of the buffer text. |
| 583 | + |
| 584 | + Can also be used as a |method|: > |
| 585 | + GetPopup()->popup_setbuf(bufnr('foobar')) |
| 586 | +< |
| 587 | + Return type: |vim9-boolean| |
| 588 | + |
| 589 | + |
577 | 590 | popup_setoptions({id}, {options}) *popup_setoptions()*
|
578 | 591 | Override options in popup {id} with entries in {options}.
|
579 | 592 | These options can be set:
|
@@ -613,9 +626,8 @@ popup_setoptions({id}, {options}) *popup_setoptions()*
|
613 | 626 |
|
614 | 627 |
|
615 | 628 | popup_settext({id}, {text}) *popup_settext()*
|
616 |
| - Set the text of the buffer in popup win {id}. {text} is the |
617 |
| - same as supplied to |popup_create()|, except that a buffer |
618 |
| - number is not allowed. |
| 629 | + Set the text of the buffer in popup win {id}. {text} is |
| 630 | + a string or a list of strings to be displayed in the popup. |
619 | 631 | Does not change the window size or position, other than caused
|
620 | 632 | by the different text.
|
621 | 633 |
|
|
0 commit comments