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/0d2d33d5-c6be-64a0-1132-283820f30007%40gmail.com.

Reply via email to