docs: align directory history contract

This commit is contained in:
GeekMr committed 2026-09-21 21:48:57 +08:00
1 parent 1338cce766
commit d192e2a190
1 file changed
+1 -1
+1 -1
View File
@@ -157,7 +157,7 @@ impl DirectoryHistory {
}
}
/// Record a directory only after the shell reports it as the active cwd.
/// Record a directory confirmed by local terminal startup or cwd reporting.
pub(crate) fn record(&self, path: &str) -> bool {
let Some(observation) = observation(path, current_time()) else { return false };
let mut state = self.state.lock();