diff --git a/src/lib/controller.ts b/src/lib/controller.ts index 00b16498..f803b5fd 100644 --- a/src/lib/controller.ts +++ b/src/lib/controller.ts @@ -15,7 +15,7 @@ export async function acceptExCmd(exstr: string): Promise { try { const [func, args] = exmode_parser(exstr, stored_excmds) // Stop the repeat excmd from recursing. - if (func !== stored_excmds[""].repeat) state.last_ex_str = exstr + if (func !== stored_excmds[""].repeat && state.last_ex_str != exstr) state.last_ex_str = exstr try { return await func(...args) } catch (e) {