When in insert mode completion, infopopup obstructs the display of the current line.

23 views
Skip to first unread message

h_east

unread,
Dec 6, 2019, 3:19:11 AM12/6/19
to vim_dev
Hi Bram and list!

I found an infopopup behavior that interfered with the display of the current line while completing insert mode.

How to reproduce:
- Open a terminal of size 80x24.
- Change directory to your vim/src
  $ cd /path to your/vim/src
- Run vanilla Vim with some setings.
  $ vim --clean +"set completeopt+=popup completepopup=align:menu" screen.c
- Enter insert mode with `O` and type `scr`.
  Oscr
- Enter Omni completion mode
  <C-X><C-O>

Expected behavior:
- Current line displayed properly.

Actual behavior:
- infopopup obstructs the display of the current line.
  See attached image `infopopup_ng.png`.


Remarks:
- When change the terminal size to 150x24 etc., the current line will be displayed correctly.
  See attached image `infopopup_ok.png`.

I think the current line should be displayed under any circumstances.
And I think it would be better if Vim could inform me that infopopup is not displayed correctly by last line etc.

--
Best regards,
Hirohito Higashi (h_east)
infopopup_ng.png
infopopup_ok.png

Bram Moolenaar

unread,
Dec 6, 2019, 2:18:14 PM12/6/19
to vim...@googlegroups.com, h_east
This is a tricky situation, the info popup just doesn't fit.
I'll make it hidden now, that is when the maximum width becomes less
than 10 characters.

It might be possible to display the popup elsewhere, but it's not easy
to decide where it would go. On top of the menu perhaps? But then only
if it's not hiding something there, which cannot really be decided
automatically.

--
hundred-and-one symptoms of being an internet addict:
201. When somebody asks you where you are, you tell them in which chat room.

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

h_east

unread,
Dec 6, 2019, 7:47:42 PM12/6/19
to vim_dev
Hi Bram,

2019-12-7(Sat) 4:18:14 UTC+9 Bram Moolenaar:
Thank you for fixing this quickly!
Reply all
Reply to author
Forward
0 new messages