- Fixed a buged while condition inside path_resolver.ts
- Fixed `NodePointer` class to work with by reference comparison (maps use that) so the reverse index can look up entries properly`. `NodePointer` now caches every pointer created so logic can use reference comparison
This commit is contained in:
@@ -187,7 +187,7 @@ export function resolvePointer(state: ShellState, pointer: NodePointer): string
|
||||
|
||||
let ptr = pointer;
|
||||
// TODO: Change while statements condition to not be hardcoded
|
||||
while (ptr.equals(NodePointer.of(0, 0))) {
|
||||
while (!ptr.equals(NodePointer.of(0, 0))) {
|
||||
if (state.filesystem.isMountTarget(ptr)) {
|
||||
const mount = state.filesystem.getMountPoint(ptr);
|
||||
if (!mount) {
|
||||
|
||||
Reference in New Issue
Block a user