[vim/vim] Old semi-transparent popup window remains when its text and position are changed on terminal window (Issue #20679)

3 views
Skip to first unread message

mityu

unread,
11:48 AM (8 hours ago) 11:48 AM
to vim/vim, Subscribed
mityu created an issue (vim/vim#20679)

Steps to reproduce

  1. Make this vimrc.vim.

    set nocompatible
    
    function s:timer_callback(popupid) abort
      call popup_settext(a:popupid, 'XYZ')
      call popup_setoptions(a:popupid, #{ col: popup_getpos(a:popupid).col + 3 })
    endfunction
    
    function s:repro() abort
      terminal ++curwin
    
      " Maybe this is an timing issue.  Rarely this bug doesn't happen without
      " this.
      " Probably... we have to wait until the invoked shell fully starts up; i.e.
      " we should wait for the state that Vim has no more need to redraw the
      " terminal window...
      sleep 100m
    
      let popupid = popup_create('ABC', #{ opacity: 30 })
      call timer_start(100, {-> s:timer_callback(popupid)})
    endfunction
    
    command! Repro call s:repro()
  2. Open Vim with this command: vim -u /path/to/vimrc.vim

  3. Type :Repro<CR> to run the :Repro command.

  4. Check the screen.

Expected behaviour

Only the popup area "XYZ" should be remain and the area "ABC" should be cleared.

  • Expected behavior
    (Please ignore the difference of popup window's color. It seems that this bug doesn't happen when popup windows are not transparent, so I made popup's opacity to 100 to take this screenshot.)
Screenshot_2026-07-01_00-42-42.png (view on web)
  • Actual behavior
Screenshot_2026-07-01_00-30-27.png (view on web)

Version of Vim

Vim 9.1.0752

Environment

OS: NixOS

$ nix-info -m
 - system: `"x86_64-linux"`
 - host os: `Linux 6.18.37, NixOS, 26.11 (Zokor), 26.11.20260629.7a1a647`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.34.7`
 - channels(root): `"nixos-25.11"`
 - nixpkgs: `/nix/store/5h5kl81y2l0sgy331sfdqqq2bwnw867w-source`

Terminal:

  • WezTerm: wezterm 0-unstable-2026-06-22
  • Ghostty: Ghostty 1.3.1
  • XTerm: XTerm(410)

Shell:

  • bash: GNU bash, version 5.3.9(1)-release (x86_64-pc-linux-gnu)
  • fish: fish, version 4.8.0

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

mityu

unread,
11:49 AM (8 hours ago) 11:49 AM
to vim/vim, Subscribed
mityu left a comment (vim/vim#20679)

I also have a screen cast of my reproduce steps.

https://github.com/user-attachments/assets/84b4ba32-c915-404e-98c4-4e96d05c9a62


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

Reply all
Reply to author
Forward
0 new messages