From 0e044d758003a5a2395ee37747befbdb00d0e7df Mon Sep 17 00:00:00 2001 From: Shaochang Tan <478710209@qq.com> Date: Sun, 16 Jun 2024 16:17:57 +0200 Subject: [PATCH] leap command highlight rule improved: clear unrelated unlabeledSelection highlight after 2ndChar was pressed. --- src/commands/seek.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/commands/seek.ts b/src/commands/seek.ts index 78bcbe0..0fe8e64 100644 --- a/src/commands/seek.ts +++ b/src/commands/seek.ts @@ -768,6 +768,8 @@ export async function leap( styledSet.deleteSelections(selections); } } + // clear unlabeled highlight + unlabeledSelectionsSet.clearSelections(); // Listen to jumps to labels. let offset = 0;