Skip to content

Commit

Permalink
chore: fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
CNSeniorious000 committed Jul 5, 2024
1 parent a631993 commit 3d8b989
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
input = "";
}
function setCusorToEnd() {
function setCursorToEnd() {
requestAnimationFrame(() => inputRef.setSelectionRange(input.length, input.length));
}
Expand All @@ -123,7 +123,7 @@
const text = history.at(++index);
if (text) {
input = text;
setCusorToEnd();
setCursorToEnd();
}
else {
index = history.length;
Expand All @@ -139,7 +139,7 @@
break;
}
input = history.at(index)!;
setCusorToEnd();
setCursorToEnd();
break;
}
Expand All @@ -152,7 +152,7 @@
const [results, position] = complete(input);
if (results.length === 1) {
input = input.slice(0, position) + results[0];
setCusorToEnd();
setCursorToEnd();
}
}
index = -1;
Expand Down Expand Up @@ -233,7 +233,7 @@
<div class="group flex flex-row" class:animate-pulse={loading || !ready}>
<ConsolePrompt prompt={status === "incomplete" ? "..." : ">>>"} />
<!-- svelte-ignore a11y-autofocus -->
<input autofocus bind:this={inputRef} class="w-full bg-transparent outline-none" bind:value={input} type="text" on:blur={setCusorToEnd} />
<input autofocus bind:this={inputRef} class="w-full bg-transparent outline-none" bind:value={input} type="text" on:blur={setCursorToEnd} />
</div>
</HeadlessConsole>
</div>
Expand Down

0 comments on commit 3d8b989

Please sign in to comment.