From f918e34e9b7725231665145ebff12c672d253439 Mon Sep 17 00:00:00 2001 From: CatsDeservePets <145048791+CatsDeservePets@users.noreply.github.com> Date: Thu, 13 Aug 2026 21:27:43 +0000 Subject: [PATCH] fix: mouse selection (#2664) --- eval.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/eval.go b/eval.go index 14fef162..d3990cc3 100644 --- a/eval.go +++ b/eval.go @@ -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 {