Skip to content

Commit ee434a6

Browse files
author
Iakov Senatov
committed
history: stop spamming add() on arrow nav, only updatePath adds dirs
1 parent 8ada493 commit ee434a6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

GUI/Sources/States/AppState/SelectionManager.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,10 @@ final class SelectionManager {
9292
lastRecordedPathRight = path
9393
}
9494

95-
log.debug("[SelectionManager] history add \(panelSide): \(path)")
95+
// Only setCurrent — don't add to history.
96+
// History is populated in updatePath() when user actually enters a directory.
97+
// Arrow-key navigation through files/dirs should NOT pollute history.
9698
selectionsHistory.setCurrent(to: path)
97-
selectionsHistory.add(path)
9899
}
99100

100101
/// Move selection up/down by step count

0 commit comments

Comments
 (0)