mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
fix: input offset is not reset when renaming with --cursor=start and the filename is too long (#575)
This commit is contained in:
parent
28870ad26e
commit
087448fd94
1 changed files with 1 additions and 0 deletions
|
|
@ -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!();
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue