From c914787f47c9a6e3d288551c1ccb9ca1e8687130 Mon Sep 17 00:00:00 2001 From: mars Date: Thu, 13 Apr 2023 00:27:17 -0400 Subject: [PATCH] Use line wrapping config for cursor movement --- src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index b5cc612..dc715bf 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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(); }