[vim/vim] popup_setoptions() cannot change title immediately (Issue #20426)

2 views
Skip to first unread message

lxhillwind

unread,
10:40 AM (4 hours ago) 10:40 AM
to vim/vim, Subscribed
lxhillwind created an issue (vim/vim#20426)

Steps to reproduce

vim9script

# v9.2.0080

const p = popup_create('hello', {title: 'title-1'})

timer_start(1000, (_) => {
    p->popup_setoptions({
        title: 'title-2', })
    timer_start(2000, (_) => {
        p->popup_close()
    })
})

Expected behaviour

  • A popup window displays, with title 'title-1';
  • After 1 second, the title changes to 'title-2';
  • After another 2 seconds, the popup window is closed.

Since patch v9.2.0080 (cded5e2 @mattn ; I confirmed with git bisect ), with this snippet, the title will not change to 'title-2' before popup window closes, unless some event happens after calling popup_setoptions() (for example, move cursor with hjkl).

Version of Vim

9.2.0080

Environment

Confirmed on:

OS: MacOS 26.4.1 / Fedora 44.

Logs and stack traces


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/20426@github.com>

Reply all
Reply to author
Forward
0 new messages