The issue is with windows gvim 9.0.133
I have tried the same in fedora36 vim 9.0.161 and it doesn't have this.

воскресенье, 7 августа 2022 г. в 18:49:03 UTC+3, Maxim Kim: 

>
> It looks like it happens on cursorhold event, not 100% sure though. 
>
> Indeed, if I change `set updatetime=1000` then I get this every second:
>
>
> vim9script
>
> def Test()
>     var prompt: string = ''
>     const wid: number = popup_create('', {
>         minwidth: 20,
>         maxheight: 1,
>         mapping: false,
>         filter: (winid: number, key: string): bool => {
>             if key == "\<esc>"
>                 popup_close(winid, -1)
>             else
>                 prompt ..= key
>                 popup_settext(winid, prompt)
>             else
>                 return false
>             endif
>             return true
>         },
>         callback: (_: number, result: number) => {
>             if result == 0
>                 echomsg prompt
>             endif
>         }
>     })
> enddef
>
> Test()
>
>
>

-- 
-- 
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 vim_use+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/5a21ec1b-fc56-4b21-8f1e-40dee75d5f72n%40googlegroups.com.

Reply via email to