func! Test() abort
call popup_atcursor(repeat('x', 500), {
\ 'moved': 'any',
\ 'border': [1, 1, 1, 1],
\})
endfunc
call cursor([9, 78])
call Test()
"=======================================================================================
Please test this. Vim goes in endless loop since popup location does not be found.
https://github.com/vim/vim/pull/5728
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.![]()
I cannot reproduce the problem. How would "maxwidth" become zero or smaller?
I cannot reproduce the problem. How would "maxwidth" become zero or smaller?
Yes, it is. When the cursor is most right. The func above make endless loop.
func! Test() abort
call popup_atcursor(repeat('x', 500), {
\ 'moved': 'any',
\ 'border': [1, 1, 1, 1],
\})
endfunc
set signcolumn=yes
call setline(1, repeat('=', &columns))
normal! Gg$
call Test()
You can reproduce with this.
$ vim -Nu test.vim