mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 14:08:32 +00:00
fix(ui): flush ext_cmdline events before doing cmdpreview #27950
Problem: Unable to update the screen for external cmdline during cmdpreview. Solution: Flush the cmdline UI before cmdpreview state.
This commit is contained in:
@@ -2532,6 +2532,10 @@ static bool cmdpreview_may_show(CommandLineState *s)
|
||||
goto end;
|
||||
}
|
||||
|
||||
// Flush now: external cmdline may itself wish to update the screen which is
|
||||
// currently disallowed during cmdpreview(no longer needed in case that changes).
|
||||
cmdline_ui_flush();
|
||||
|
||||
// Swap invalid command range if needed
|
||||
if ((ea.argt & EX_RANGE) && ea.line1 > ea.line2) {
|
||||
linenr_T lnum = ea.line1;
|
||||
|
Reference in New Issue
Block a user