mirror of
https://github.com/vale981/tridactyl
synced 2025-03-06 01:51:40 -05:00
Only set last_ex_str if it changes
This improves performance of continuous scrolling
This commit is contained in:
parent
09f6831b0e
commit
5706bdad80
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ export async function acceptExCmd(exstr: string): Promise<any> {
|
|||
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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue