Fix cursor when renaming

This commit is contained in:
Joe Lim committed 2024-04-11 13:17:28 +10:00
1 parent 089c540d75
commit d3f7c08387
1 file changed
+3 -1
+3 -1
View File
@@ -1566,7 +1566,9 @@ func (nav *nav) rename() error {
dir := nav.loadDir(filepath.Dir(newPath))
if dir.loading {
dir.files = append(dir.files, &file{FileInfo: lstat})
file := &file{FileInfo: lstat}
dir.allFiles = append(dir.allFiles, file)
dir.files = append(dir.files, file)
}
dir.sel(lstat.Name(), nav.height)