|
@@ -587,8 +587,12 @@ export function Prompt(props: PromptProps) {
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if (e.name === "up" && input.visualCursor.visualRow === 0) input.cursorOffset = 0
|
|
|
|
|
- if (e.name === "down" && input.visualCursor.visualRow === input.height - 1)
|
|
|
|
|
|
|
+ if (keybind.match("history_previous", e) && input.visualCursor.visualRow === 0)
|
|
|
|
|
+ input.cursorOffset = 0
|
|
|
|
|
+ if (
|
|
|
|
|
+ keybind.match("history_next", e) &&
|
|
|
|
|
+ input.visualCursor.visualRow === input.height - 1
|
|
|
|
|
+ )
|
|
|
input.cursorOffset = input.plainText.length
|
|
input.cursorOffset = input.plainText.length
|
|
|
}
|
|
}
|
|
|
if (!autocomplete.visible) {
|
|
if (!autocomplete.visible) {
|
|
@@ -712,7 +716,8 @@ export function Prompt(props: PromptProps) {
|
|
|
<Match when={props.hint}>{props.hint!}</Match>
|
|
<Match when={props.hint}>{props.hint!}</Match>
|
|
|
<Match when={true}>
|
|
<Match when={true}>
|
|
|
<text fg={theme.text}>
|
|
<text fg={theme.text}>
|
|
|
- {keybind.print("command_list")} <span style={{ fg: theme.textMuted }}>commands</span>
|
|
|
|
|
|
|
+ {keybind.print("command_list")}{" "}
|
|
|
|
|
+ <span style={{ fg: theme.textMuted }}>commands</span>
|
|
|
</text>
|
|
</text>
|
|
|
</Match>
|
|
</Match>
|
|
|
</Switch>
|
|
</Switch>
|