patch holes in highlighting query span

+ make sure disable-highlighting works again
This commit is contained in:
Felix Roos 2022-05-01 11:33:25 +02:00
parent d4607c68f7
commit bdb5dabba5
3 changed files with 9 additions and 6 deletions

View file

@ -121,7 +121,7 @@ function App() {
return () => window.removeEventListener('keydown', handleKeyPress);
}, [pattern, code, activateCode, cycle]);
useHighlighting({ view, pattern, started: cycle.started });
useHighlighting({ view, pattern, active: cycle.started && !activeCode?.includes('strudel disable-highlighting') });
useWebMidi({
ready: useCallback(