From 8404e27e07e1c328672eae4d17332f15974b150d Mon Sep 17 00:00:00 2001 From: Timotheus Merlin Scherer Date: Sun, 7 Jun 2026 11:28:20 +0200 Subject: [PATCH] fix: show selection highlight in vim visual mode Add drawSelection() so vim visual mode selections render with a visible background. Without this extension, the .cm-selectionBackground CSS rule had no elements to style. --- apps/desktop/src/components/workspace/editor/latex-editor.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/desktop/src/components/workspace/editor/latex-editor.tsx b/apps/desktop/src/components/workspace/editor/latex-editor.tsx index b097a31..c4ea71d 100644 --- a/apps/desktop/src/components/workspace/editor/latex-editor.tsx +++ b/apps/desktop/src/components/workspace/editor/latex-editor.tsx @@ -2,6 +2,7 @@ import { useCallback, useEffect, useRef, useState, useMemo } from "react"; import { Compartment, EditorState, Prec, Transaction } from "@codemirror/state"; import { EditorView, + drawSelection, keymap, lineNumbers, highlightActiveLine, @@ -620,6 +621,7 @@ export function LatexEditor() { extensions: [ compileKeymap, lineNumbers(), + drawSelection(), highlightActiveLine(), highlightActiveLineGutter(), history(),