[vim/vim] Popup images do not respect boundary positioning (Issue #20469)

6 views
Skip to first unread message

Mao-Yining

unread,
6:30 AM (3 hours ago) 6:30 AM
to vim/vim, Subscribed
mao-yining created an issue (vim/vim#20469)

Steps to reproduce

vim9script
var long_text = repeat('x', 90)
popup_atcursor(long_text, {
	padding: [1, 1, 1, 1],
	border: [],
	highlight: 'WarningMsg',
})

var pixels = repeat([0xff, 0x00, 0x00], 1200 * 50)->list2blob()
popup_atcursor('', {
	image: { data: pixels, width: 1200, height: 50 },
	line: 'cursor+1', col: 'cursor',
})
default.png (view on web) default.png (view on web)

Expected behaviour

Change position correctly.

Version of Vim

9.2.612

Environment

MS-Windows GUI

Logs and stack traces

I didn't try other functions's like `popup_create`. May be they have same issues.


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/20469@github.com>

Mao-Yining

unread,
6:30 AM (3 hours ago) 6:30 AM
to vim/vim, Subscribed
mao-yining left a comment (vim/vim#20469)

@mattn


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

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

Mao-Yining

unread,
6:32 AM (3 hours ago) 6:32 AM
to vim/vim, Subscribed
mao-yining left a comment (vim/vim#20469)

In real case:


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

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

Reply all
Reply to author
Forward
0 new messages