From 1bfee0a41bdf739020dc817e5618aa1b7ce9e6ab Mon Sep 17 00:00:00 2001 From: sxyazi Date: Thu, 25 Jan 2024 07:56:59 +0800 Subject: [PATCH] fix: input offset is not reset when renaming with `--cursor=start` and the filename is too long --- 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!();