Skip to content

Commit 7803edc

Browse files
committed
fix: Fix rabbit review comments
1 parent 5547665 commit 7803edc

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/internal/config_function.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ func updateFirstFilePanelPaths(firstPanelPaths []string, cwd string, zClient *zo
9999
originalPath := firstPanelPaths[i]
100100
firstPanelPaths[i] = utils.ResolveAbsPath(cwd, firstPanelPaths[i])
101101
if _, err := os.Stat(firstPanelPaths[i]); err != nil {
102-
slog.Error("cannot get stats for firstFilePanelDir", "error", err)
102+
slog.Error("cannot get stats", "path", firstPanelPaths[i], "error", err)
103103
// In case the path provided did not exist, use zoxide query
104104
// else, fallback to home dir
105105
if common.Config.ZoxideSupport && zClient != nil {

src/internal/model.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -762,6 +762,7 @@ func (panel *filePanel) applyTargetFileCursor() {
762762
for idx, el := range panel.element {
763763
if el.name == panel.targetFile {
764764
panel.cursor = idx
765+
break
765766
}
766767
}
767768
panel.targetFile = ""

0 commit comments

Comments
 (0)