fix(compatibility): do not break starship multiline prompt (#30)
This commit is contained in:
parent
ee0167f3af
commit
f02136ec0d
2 changed files with 4 additions and 1 deletions
|
|
@ -338,6 +338,9 @@ impl Scroll {
|
||||||
self.cursor_position.move_backwards(count);
|
self.cursor_position.move_backwards(count);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
pub fn move_cursor_to_beginning_of_linewrap(&mut self) {
|
||||||
|
self.cursor_position.move_to_beginning_of_linewrap();
|
||||||
|
}
|
||||||
pub fn move_cursor_to_beginning_of_canonical_line(&mut self) {
|
pub fn move_cursor_to_beginning_of_canonical_line(&mut self) {
|
||||||
self.cursor_position.move_to_beginning_of_canonical_line();
|
self.cursor_position.move_to_beginning_of_canonical_line();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -260,7 +260,7 @@ impl TerminalPane {
|
||||||
self.should_render = true;
|
self.should_render = true;
|
||||||
}
|
}
|
||||||
fn move_to_beginning_of_line (&mut self) {
|
fn move_to_beginning_of_line (&mut self) {
|
||||||
self.scroll.move_cursor_to_beginning_of_canonical_line();
|
self.scroll.move_cursor_to_beginning_of_linewrap();
|
||||||
}
|
}
|
||||||
fn move_cursor_backwards(&mut self, count: usize) {
|
fn move_cursor_backwards(&mut self, count: usize) {
|
||||||
self.scroll.move_cursor_backwards(count);
|
self.scroll.move_cursor_backwards(count);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue