fixed read ahead forcing highlight mode letter

This commit is contained in:
Miodec 2022-10-31 17:10:02 +01:00
parent a8b4fa348b
commit 54264da201

View file

@ -211,9 +211,10 @@ export async function activate(funbox?: string): Promise<boolean | undefined> {
}
if (
funbox === "read_ahead" ||
funbox === "read_ahead_easy" ||
funbox === "read_ahead_hard"
(funbox === "read_ahead" ||
funbox === "read_ahead_easy" ||
funbox === "read_ahead_hard") &&
Config.highlightMode === "word"
) {
UpdateConfig.setHighlightMode("letter", true);
}