mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-28 01:11:15 -03:00
Fix bad conflict resolution
This commit is contained in:
@@ -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"));
|
||||
|
||||
Reference in New Issue
Block a user