fix(compatibility): do not break starship multiline prompt (#30)

This commit is contained in:
Aram Drevekenin 2020-11-09 12:18:58 +01:00 committed by GitHub
parent ee0167f3af
commit f02136ec0d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View file

@ -338,6 +338,9 @@ impl Scroll {
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) {
self.cursor_position.move_to_beginning_of_canonical_line();
}

View file

@ -260,7 +260,7 @@ impl TerminalPane {
self.should_render = true;
}
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) {
self.scroll.move_cursor_backwards(count);