From 3453ba767c247365806b2edced188e133df2678b Mon Sep 17 00:00:00 2001 From: Oliver Blanthorn Date: Fri, 24 Jul 2026 20:31:44 +0200 Subject: [PATCH] Fix #1669: `modeindicatorshowkeys` for hint filter --- src/content/hinting.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/content/hinting.ts b/src/content/hinting.ts index 9d523b2b..137768d0 100644 --- a/src/content/hinting.ts +++ b/src/content/hinting.ts @@ -1191,6 +1191,7 @@ function cleanup() { const state = modeState modeState = undefined if (state) state.cleanUpHints() + contentState.suffix = "" window.removeEventListener("scroll", updateHudOffset) return state } @@ -1208,6 +1209,7 @@ addContentStateChangedListener((property, oldMode) => { function popKey() { modeState.filter = modeState.filter.slice(0, -1) modeState.filterFunc(modeState.filter) + contentState.suffix = modeState?.filter || "" } /** Add key to filtstr and filter */ @@ -1222,6 +1224,7 @@ function pushKey(key) { modeState.filter = originalFilter modeState.filterFunc(modeState.filter) } + contentState.suffix = modeState?.filter || "" } /** Covert to char and pushKey(). This is needed because ex commands ignore whitespace. */ @@ -1403,6 +1406,7 @@ function selectFocusedHint(delay = false) { const focused = modeState.focusedHint const selectFocusedHintInternal = () => { modeState.filter = "" + contentState.suffix = "" modeState.hints.forEach(h => { h.restoreName() h.hidden = false