Fix #8
This commit is contained in:
parent
858cffb587
commit
caa9442575
@ -75,7 +75,8 @@ const REPLInput: NextPage<REPLInputParams> = ({historyCallback, historyClear, in
|
|||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
}
|
}
|
||||||
if (e.key === "Tab" && currentCmd.length !== 0) {
|
if (e.key === "Tab" && currentCmd.length !== 0) {
|
||||||
setInput(input, currentCmd[justTabbed % currentCmd.length]);
|
const cmd = `${currentCmd[justTabbed % currentCmd.length]}${currentCmd.length === 1 ? " " : ""}`;
|
||||||
|
setInput(input, cmd);
|
||||||
setJustTabbed(justTabbed + 1);
|
setJustTabbed(justTabbed + 1);
|
||||||
return false;
|
return false;
|
||||||
} else setJustTabbed(0);
|
} else setJustTabbed(0);
|
||||||
|
Loading…
Reference in New Issue
Block a user