Skip to content

Commit

Permalink
shell: Fix bug in shell navigation
Browse files Browse the repository at this point in the history
Found by TypeScript.  The symptom of the bug is that navigating again
to the current location would not be a no-op, but would create a
history entry. This seems hard to trigger. Still a bug.
  • Loading branch information
mvollmer committed Nov 14, 2024
1 parent d6d7188 commit cf7aa37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/shell/state.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ export function ShellState() {
}

if (location.host !== current.host ||
location.path !== current.pathframe_change ||
location.path !== current.path ||
location.hash !== current.hash) {
push_window_location(location);
update();
Expand Down

0 comments on commit cf7aa37

Please sign in to comment.