Redraw when cmdheight is 0

10 views
Skip to first unread message

Egor Zvorykin

unread,
Aug 29, 2022, 7:11:56 AM8/29/22
to vim_dev
I use search a lot. If I use cmdheight=0 the search triggers a command line to appear, but when I press enter and the command line disappears there is a *redraw* of the screen. It is very noticeable and prevents me from using this feature. It's noticeable even with "vim --clean".

Bram Moolenaar

unread,
Aug 29, 2022, 7:30:49 AM8/29/22
to vim...@googlegroups.com, Egor Zvorykin
This is because the last window size changes, it fills the space that
was just before used for typing the command line.

You should be able to see what happens when 'writedelay' is set to a
small number, e.g. 10. Does (part of) the screen clear, or is it drawn
over the existing text? It looks like it is cleared, perhaps that can be
avoided... Hmm, a comment says:
// Redraw is needed for command line completion

--
People who want to share their religious views with you
almost never want you to share yours with them.

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

Egor Zvorykin

unread,
Aug 30, 2022, 2:44:49 AM8/30/22
to vim_dev
I tried the fix you pushed and it looks great, thanks.

понедельник, 29 августа 2022 г. в 14:30:49 UTC+3, Bram Moolenaar:
Reply all
Reply to author
Forward
0 new messages