[vim/vim] gVim: info popup flashes with completeopt=popuphidden when shortmess+=c (Issue #18442)

3 views
Skip to first unread message

Ruben Gonzalez

unread,
Sep 29, 2025, 4:46:55 PM (yesterday) Sep 29
to vim/vim, Subscribed
gonzaru created an issue (vim/vim#18442)

Steps to reproduce

  1. $ vim --clean
  2. : source the file (gvim-popup.vim.txt)
  3. insert mode to launch complete func (C-x_C-u)
  4. navigate with or

vim9script

def MyComplete(findstart: number, base: string): any
if findstart
return col('.') - 1 - match(getline('.')->strpart(0, col('.') - 1), '\k*$')
endif
return [
{word: 'printf', info: 'printf info'},
{word: 'printer', info: 'printer info'},
{word: 'printable', info: 'printable info'},
]
enddef

set completefunc=MyComplete

set completeopt=menuone,noselect,popup

set completeopt=menuone,noselect,popuphidden

set shortmess+=c

gvim-popup.vim.txt

Expected behaviour

Hello,

The popup should remain hidden at all times unless explicitly shown by the user (e.g., via popup_show()).

Without shortmess+=c, the popup stays hidden as expected.

With shortmess+=c, the info popup momentarily appears and then vanishes during completion navigation.

Thank you!

Version of Vim

9.1.1806 (GTK3 GUI)

Environment

GNU/Linux
GTK3

Logs and stack traces


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

Christian Brabandt

unread,
Sep 29, 2025, 5:29:34 PM (yesterday) Sep 29
to vim/vim, Subscribed
chrisbra left a comment (vim/vim#18442)

is this by any chance fixed by 71b97f2 ?


Reply to this email directly, view it on GitHub.

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

Ruben Gonzalez

unread,
Sep 29, 2025, 5:45:57 PM (yesterday) Sep 29
to vim/vim, Subscribed
gonzaru left a comment (vim/vim#18442)

Hello,

Same with 9.1.1813

I noticed this behavior some time ago but didn’t report it because I was using a workaround: temporarily toggling shortmess+=c off and back on around the action (i.e., :set shortmess-=c before and :set shortmess+=c after).

The issue appears only in gVim when shortmess+=c is set.
In terminal Vim, the behavior is correct both with and without shortmess+=c—no flash occurs.

Regards,


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

Reply all
Reply to author
Forward
0 new messages