patch 8.2.0359: popup_atcursor() may hang
Problem: popup_atcursor() may hang. (Yasuhiro Matsumoto)
Solution: Take the decoration into account. (closes #5728)
diff --git a/src/testdir/test_popupwin.vim b/src/testdir/test_popupwin.vim
index ebc8c43..d89824d 100644
--- a/src/testdir/test_popupwin.vim
+++ b/src/testdir/test_popupwin.vim
@@ -3293,4 +3293,17 @@
unlet g:bytes
endfunc
+func Test_popupwin_atcursor_far_right()
+ new
+
+ " this was getting stuck
+ set signcolumn=yes
+ call setline(1, repeat('=', &columns))
+ normal! ggg$
+ call popup_atcursor(repeat('x', 500), #{moved: 'any', border: []})
+
+ bwipe!
+ set signcolumn&
+endfunc
+
" vim: shiftwidth=2 sts=2