fix: quick single list commandline not being reverted

This fixes an issue where it was impossible to revert back to the "normal"
commandline state by deleting the leading `>` character in the commandline
This commit is contained in:
Miodec 2023-08-13 15:33:20 +02:00
parent 2bae227b63
commit 174525c6be

View file

@ -681,6 +681,7 @@ $(document).on("keydown", (e) => {
commandLineMouseMode = false;
if (e.key === ">" && Config.singleListCommandLine === "manual") {
if (!isSingleListCommandLineActive()) {
state["usingSingleList"] = true;
useSingleListCommandLine(false);
return;
} else if ($("#commandLine input").val() === ">") {
@ -699,6 +700,7 @@ $(document).on("keydown", (e) => {
inputVal[0] !== ">"
) {
restoreOldCommandLine(false);
updateSuggested();
}
}, 1);
}