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

This commit is contained in:
sxyazi 2024-01-25 07:56:59 +08:00
parent a19e263242
commit 1bfee0a41b
No known key found for this signature in database

View file

@ -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!();