From e33158a527d31c182a70ea503f6f960ee0b1f025 Mon Sep 17 00:00:00 2001 From: Leonard Hecker Date: Wed, 4 Jun 2025 01:27:35 +0200 Subject: [PATCH] Fix cursor_move_to_visual not moving backward --- src/buffer/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/buffer/mod.rs b/src/buffer/mod.rs index 12a61be318a6..15db6d97f25b 100644 --- a/src/buffer/mod.rs +++ b/src/buffer/mod.rs @@ -1347,7 +1347,7 @@ impl TextBuffer { if self.word_wrap_column <= 0 { // Identical to the fast-pass in `cursor_move_to_logical_internal()`. - if pos.y != cursor.logical_pos.y || pos.x < cursor.logical_pos.x { + if pos.y != cursor.visual_pos.y || pos.x < cursor.visual_pos.x { cursor = self.goto_line_start(cursor, pos.y); } } else {