From 087448fd94df495a6a659c86519b8d74668159b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E5=92=B2=E9=9B=85=20=C2=B7=20Misaki=20Masa?= Date: Thu, 25 Jan 2024 08:01:18 +0800 Subject: [PATCH] fix: input offset is not reset when renaming with `--cursor=start` and the filename is too long (#575) --- yazi-core/src/input/commands/show.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/yazi-core/src/input/commands/show.rs b/yazi-core/src/input/commands/show.rs index 482e6a62..260bc646 100644 --- a/yazi-core/src/input/commands/show.rs +++ b/yazi-core/src/input/commands/show.rs @@ -46,6 +46,7 @@ impl Input { // Set cursor after reset if let Some(cursor) = opt.cfg.cursor { self.snaps.current_mut().cursor = cursor; + self.move_(0); } render!();