fix: mouse selection (#2664)

This commit is contained in:
CatsDeservePets authored and GitHub committed 2026-08-13 23:27:43 +02:00
1 parent 1f779c5d7e
commit f918e34e9b
1 file changed
+7 -1
+7 -1
View File
@@ -1597,7 +1597,13 @@ func (e *callExpr) eval(app *app, _ []string) {
if dir.loading {
dir.files = append(dir.files, &file{FileInfo: lstat})
}
dir.sel(filepath.Base(path), app.nav.height)
name := filepath.Base(path)
for i, f := range dir.files {
if f.Name() == name {
app.nav.move(i)
break
}
}
app.ui.loadFile(app, true)
case "source":
if len(e.args) != 1 {