Problem: In the GUI the colors set in the vimrc are not shown until the
first redraw, which happens after the VimEnter autocommands.
When a VimEnter autocommand is slow the window shows the
default colors for a noticeable time, e.g. a white flash
before a dark colorscheme. Most noticeable on MS-Windows.
Solution: Draw the screen once before triggering the VimEnter
autocommands, so the colors from the vimrc are shown right
away.
fixes: #20757
In the GUI the colors set in the vimrc are only shown at the first redraw in
the main loop, which is after the VimEnter autocommands. A slow VimEnter
autocommand therefore leaves the window showing the default colors for a
noticeable time, for example a white flash before a dark colorscheme.
Drawing the screen once just before the VimEnter autocommands makes the vimrc
colors appear right away.
Confirmed on MS-Windows gVim. On GTK the drawing is not presented until the
GTK event loop runs, so there is no visible change there; the extra draw is
harmless.
https://github.com/vim/vim/pull/20807
(1 file)
—
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.![]()
I have a change in testing that also redraws when moving the window.
Just a heads up that this might be related to my GDK_PRIORITY_REDRAW condition from:
#20528
Taking note of this change, ping me if there's more redraw related changes coming for gui.
—
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.![]()
Hm, could this cause some annoying highlighting changes? E.g. if the VimEnter autocommand changes the coloring (or background color), that would make a visible switch in the highlighting appearance for a user and might be a bit annoying?
—
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.![]()