the prompt and command input works but the history does not

This commit is contained in:
2025-02-18 17:36:54 -05:00
parent 578aebcae1
commit 129d0ff6b4
7 changed files with 150 additions and 122 deletions

View File

@ -2,7 +2,7 @@ import { Entry, EntryType, fs, type FsEntrySignature } from "./fs"
let working_dir = ["/", "home", "user"]
function get_working_dir_name(): string {
function get_working_dir_name() {
return working_dir[working_dir.length-1]
}
@ -29,7 +29,7 @@ function iter_fs_to_goal(w_dir_clone: string[]): FsIterEntry {
for (const w_dir of w_dir_clone) {
if (w_dir === "/") { continue }
if (next_iter.inner) {
if (next_iter && next_iter.inner) {
const found = next_iter.inner.find(entry => entry.name === w_dir)
if (!found) {