fix: mouse selection (#2664)
This commit is contained in:
1 parent
1f779c5d7e
commit
f918e34e9b
1 file changed
+7
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user