[vim/vim] Popup line behavior with &lines / &lines - 1 causes echo refresh (Issue #20670)

1 view
Skip to first unread message

Mao-Yining

unread,
11:34 AM (3 hours ago) 11:34 AM
to vim/vim, Subscribed
mao-yining created an issue (vim/vim#20670)

Steps to reproduce

When a popup is created with line set to &lines or &lines - 1, any echo inside the filter callback triggers a screen refresh that clears or redraws the popup content unexpectedly.

vim9script
popup_create('xxxxxxxxxxxxxxxxxx', {
    line: &lines - 1,
    filter: (win, key) => {
        if key == 'e'
            echo 'ls'
            popup_close(win)
        endif
        return false
    }
})

Press e → echo appears but popup flickers/refreshes.

Expected behaviour

echo should not force a full screen refresh like &lines - 2

Version of Vim

9.2.0747

Environment

MS-Windows GUI and TUI

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

Reply all
Reply to author
Forward
0 new messages