forked from mars/breed
Use line wrapping config for cursor movement
This commit is contained in:
parent
60fd94ed34
commit
c914787f47
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Reference in New Issue