fix: input offset is not reset when renaming with --cursor=start and the filename is too long (#575)

This commit is contained in:
三咲雅 · Misaki Masa 2024-01-25 08:01:18 +08:00 committed by GitHub
parent 28870ad26e
commit 087448fd94
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -46,6 +46,7 @@ impl Input {
// Set cursor after reset // Set cursor after reset
if let Some(cursor) = opt.cfg.cursor { if let Some(cursor) = opt.cfg.cursor {
self.snaps.current_mut().cursor = cursor; self.snaps.current_mut().cursor = cursor;
self.move_(0);
} }
render!(); render!();