[vim/vim] popup_create regression since 13c1153ee (Issue #19767)

3 views
Skip to first unread message

Enrico Maria De Angelis

unread,
Mar 20, 2026, 5:31:22 AM (6 days ago) Mar 20
to vim/vim, Subscribed
Aster89 created an issue (vim/vim#19767)

Steps to reproduce

  1. Open a terminal and resize it so that its width in columns (e.g. $COLUMNS in bash) is a multiple of 3, minus 1, e.g. in my case 64 × 3 - 1 = 191,
  2. open Vim with no configuration, i.e. vim -u NONE,
  3. arrange 3 windows side by side, e.g. via Ctlr+wvCtlr+wv, which will result in 3 windows of equal width (63 in my example),
  4. execute these commands
    let l = '[' . repeat('=', 100) . ']'
    let s = '[' . repeat('=', 10) . ']'
    echo popup_create(l, #{ line: 20, col: 1, moved: [0,0,0], maxwidth: 63 })
    echo popup_create(l, #{ line: 30, col: 65, moved: [0,0,0], maxwidth: 63 })
    echo popup_create(l, #{ line: 35, col: 129, moved: [0,0,0], maxwidth: 63 })
    echo popup_create(s, #{ line: 40, col: 129, moved: [0,0,0], maxwidth: 63 })
    here's a one liner:
    let l = '[' . repeat('=', 100) . ']' | let s = '[' . repeat('=', 10) . ']' | echo popup_create(l, #{ line: 20, col: 1, moved: [0,0,0], maxwidth: 63 }) | echo popup_create(l, #{ line: 30, col: 65, moved: [0,0,0], maxwidth: 63 }) | echo popup_create(l, #{ line: 35, col: 129, moved: [0,0,0], maxwidth: 63 }) | echo popup_create(s, #{ line: 40, col: 129, moved: [0,0,0], maxwidth: 63 })

The first and second calls to popup_create result in a popup which is tightly contained in the first and second window from the left, as expected, thanks to wrap = 1 (which is default in the second argument to popup_create), which results in the two long strings to be wrapped.

The fourth call to popup_create, since its first argument is short string, poses no problem, but it at least proves that col: 129 points to the first column of the rightmost window.

Unfortunately, the third call to popup_create results in a popup that doesn't wrap text.

image.png (view on web)

Expected behaviour

The third call to popup_create should also result in a popup which is tightly contained in the window (the rightmost window).

Version of Vim

v9.1.0949

Environment

Operating system: up-to-date ArchLinux
Terminal: URxvt
Value of $TERM: rxvt-unicode-256color
Shell: bash

Logs and stack traces


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/19767@github.com>

Enrico Maria De Angelis

unread,
Mar 20, 2026, 5:35:02 AM (6 days ago) Mar 20
to vim/vim, Subscribed
Aster89 left a comment (vim/vim#19767)

@bstaletic, since you authored 13c1153, maybe you can give a look at it?

The commit message reads:

    Problem:  popups inconsistently shifted to the left
    Solution: always shift non-fixed popups to the left when the
              text would be truncated
              (no matter whether 'wrap' is set or not)
              (Boris Staletic)

maybe wrap does matter, after all?


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/19767/4096841054@github.com>

Christian Brabandt

unread,
Mar 25, 2026, 4:22:18 PM (14 hours ago) Mar 25
to vim/vim, Subscribed

Closed #19767 as completed via c0f0a34.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issue/19767/issue_event/23906438167@github.com>

Reply all
Reply to author
Forward
0 new messages