@@ -178,7 +178,7 @@ DETAILS *popup-function-details*
178178popup_atcursor({what} , {options} ) *popup_atcursor()*
179179 Show the {what} above the cursor, and close it when the cursor
180180 moves. This works like: >
181- call popup_create({what}, ~ {
181+ call popup_create({what}, # {
182182 \ pos: 'botleft',
183183 \ line: 'cursor-1',
184184 \ col: 'cursor',
@@ -191,7 +191,7 @@ popup_beval({what}, {options}) *popup_beval()*
191191 Show the {what} above the position from 'ballooneval' and
192192 close it when the mouse moves. This works like: >
193193 let pos = screenpos(v:beval_winnr, v:beval_lnum, v:beval_col)
194- call popup_create({what}, ~ {
194+ call popup_create({what}, # {
195195 \ pos: 'botleft',
196196 \ line: pos.row - 1,
197197 \ col: pos.col,
@@ -240,7 +240,7 @@ popup_create({what}, {options}) *popup_create()*
240240
241241popup_dialog({what} , {options} ) *popup_dialog()*
242242 Just like | popup_create() | but with these default options: >
243- call popup_create({what}, ~ {
243+ call popup_create({what}, # {
244244 \ pos: 'center',
245245 \ zindex: 200,
246246 \ drag: 1,
@@ -249,7 +249,7 @@ popup_dialog({what}, {options}) *popup_dialog()*
249249 \})
250250< Use {options} to change the properties. E.g. add a 'filter'
251251 option with value 'popup_filter_yesno'. Example: >
252- call popup_create('do you want to quit (Yes/no)?', ~ {
252+ call popup_create('do you want to quit (Yes/no)?', # {
253253 \ filter: 'popup_filter_yesno',
254254 \ callback: 'QuitCallback',
255255 \ })
@@ -356,7 +356,7 @@ popup_menu({what}, {options}) *popup_menu()*
356356 items with cursorkeys, and close it an item is selected with
357357 Space or Enter. {what} should have multiple lines to make this
358358 useful. This works like: >
359- call popup_create({what}, ~ {
359+ call popup_create({what}, # {
360360 \ pos: 'center',
361361 \ zindex: 200,
362362 \ drag: 1,
@@ -391,7 +391,7 @@ popup_move({id}, {options}) *popup_move()*
391391popup_notification({what} , {options} ) *popup_notification()*
392392 Show the {what} for 3 seconds at the top of the Vim window.
393393 This works like: >
394- call popup_create({what}, ~ {
394+ call popup_create({what}, # {
395395 \ line: 1,
396396 \ col: 10,
397397 \ minwidth: 20,
@@ -732,15 +732,15 @@ Prompt the user to press y/Y or n/N: >
732732 endif
733733 endfunc
734734
735- call popup_dialog('Continue? y/n', ~ {
735+ call popup_dialog('Continue? y/n', # {
736736 \ filter: 'popup_filter_yesno',
737737 \ callback: 'MyDialogHandler',
738738 \ })
739739<
740740 *popup_menu-shortcut-example*
741741Extend popup_filter_menu() with shortcut keys: >
742742
743- call popup_menu(['Save', 'Cancel', 'Discard'], ~ {
743+ call popup_menu(['Save', 'Cancel', 'Discard'], # {
744744 \ filter: 'MyMenuFilter',
745745 \ callback: 'MyMenuHandler',
746746 \ })
@@ -781,7 +781,7 @@ Example for using a popup window for 'ballooneval': >
781781 endif
782782 call popup_close(s:winid)
783783 endif
784- let s:winid = popup_beval(v:beval_text, ~ {mousemoved: 'word'})
784+ let s:winid = popup_beval(v:beval_text, # {mousemoved: 'word'})
785785 let s:last_text = v:beval_text
786786 return ''
787787 endfunc
@@ -812,7 +812,7 @@ this example simulated with a timer callback: >
812812 endfunc
813813
814814 func ShowPopup(id)
815- let s:winid = popup_beval(s:balloonText, ~ {mousemoved: 'word'})
815+ let s:winid = popup_beval(s:balloonText, # {mousemoved: 'word'})
816816 endfunc
817817<
818818
0 commit comments