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
+1 -1
View File
@@ -55,7 +55,7 @@ function MiniRepl({ tune, maxHeight = 500 }) {
const [ref, isVisible] = useInView({
threshold: 0.01,
});
useHighlighting({ view, pattern, started: cycle.started });
useHighlighting({ view, pattern, active: cycle.started });
return (
<div className="rounded-md overflow-hidden bg-[#444C57]" ref={ref}>
<div className="flex justify-between bg-slate-700 border-t border-slate-500">