пн, 16 мар. 2026 г., 18:54 Piotr Kolasiński <[email protected]>:

>
> Thanks for the response, but I’m afraid that I don’t understand what you
> suggest. Could you be so kind and show me simple example.
> Piotr
> czwartek, 5 marca 2026 o 15:10:21 UTC+1 M napisał(a):
>
>>
>>
>> вт, 3 мар. 2026 г., 11:41 Piotr Kolasiński <[email protected]>:
>>
>>> I try to use popup_menu() in linear code like:
>>>
>>> ——
>>>
>>> func PopupResult(id, sel)
>>>     let g:popup_sel = a:result
>>>     echo "In popup: " .. g:result
>>> endfunc
>>>
>>> call popup_menu(["A","B","C"], #{ callback: 'PopupResult' })
>>>
>>> echo 'After popup'
>>>
>>> ——-
>>>
>>> but 'After popup’ is displayed immediately, not waiting for finish the
>>> call.
>>> Does popup_menu works asynchronous? How can I execute such code in
>>> linear way?
>>>
>>> Piotr
>>>
>>> --
>>> --
>>> You received this message from the "vim_use" maillist.
>>> Do not top-post! Type your reply below the text you are replying to.
>>> For more information, visit http://www.vim.org/maillist.php
>>>
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "vim_use" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To view this discussion visit
>>> https://groups.google.com/d/msgid/vim_use/78474f86-0bd6-401c-bdc3-fc85b4ca7b45n%40googlegroups.com
>>> <https://groups.google.com/d/msgid/vim_use/78474f86-0bd6-401c-bdc3-fc85b4ca7b45n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>
>> Hello,
>>
>> No you can't. The good news is that you hardly ever need it. Just return
>> and continue execution from the callback function. The way typical for
>> _modeless_ dialogs.
>>
>> Regards,
>> Matvey
>>
>>> --
> --
> You received this message from the "vim_use" maillist.
> Do not top-post! Type your reply below the text you are replying to.
> For more information, visit http://www.vim.org/maillist.php
>
> ---
> You received this message because you are subscribed to the Google Groups
> "vim_use" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion visit
> https://groups.google.com/d/msgid/vim_use/86113ba2-911b-4ce2-ad3d-cecfa9f368b2n%40googlegroups.com
> <https://groups.google.com/d/msgid/vim_use/86113ba2-911b-4ce2-ad3d-cecfa9f368b2n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

Hello,

https://github.com/matveyt/vim-drvo/blob/74ad4fe418c68a6a8e6876f73891c6fff831c4e0/autoload/drvo.vim#L90

Regards,
Matvey

>

-- 
-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/vim_use/CAFsTB%2BJi3kYZHDdW6vw9nLBdkqK90z8Xdt-qabFzsimWpiXrMg%40mail.gmail.com.

Reply via email to