Fix bad conflict resolution

This commit is contained in:
Johannes Altmanninger
2025-04-12 10:34:31 +02:00
parent 6fcb418ae3
commit b81a55e5f0

View File

@@ -3853,17 +3853,6 @@ fn clear_screen_and_repaint(&mut self) {
self.screen.reset_line(/*repaint_prompt=*/ true);
self.layout_and_repaint(L!("readline"));
// Clear the screen.
// This is subtle: We first clear, draw the old prompt,
// and *then* reexecute the prompt and overdraw it.
// This removes the flicker,
// while keeping the prompt up-to-date.
Outputter::stdoutput()
.borrow_mut()
.write_command(ClearScreen);
self.screen.reset_line(/*repaint_prompt=*/ true);
self.layout_and_repaint(L!("readline"));
self.exec_prompt();
self.screen.reset_line(/*repaint_prompt=*/ true);
self.layout_and_repaint(L!("readline"));