Use line wrapping config for cursor movement

This commit is contained in:
mars 2023-04-13 00:27:17 -04:00
parent 60fd94ed34
commit c914787f47
1 changed files with 2 additions and 1 deletions

View File

@ -380,7 +380,8 @@ impl State {
}
fn move_cursor(&mut self, direction: Direction) {
self.buffer.move_cursor(&mut self.cursor, direction, true);
let wrap = self.config.move_linewrap;
self.buffer.move_cursor(&mut self.cursor, direction, wrap);
self.scroll_to_cursor();
}