Skip to content

fix: show selection highlight in vim visual mode - #153

Merged
delibae merged 1 commit into
delibae:mainfrom
TimothyMerlin:fix/vim-selection-highlight
Jun 8, 2026
Merged

delibae merged 1 commit into
delibae:mainfrom
TimothyMerlin:fix/vim-selection-highlight

Conversation

@TimothyMerlin

Copy link
Copy Markdown

Summary

  • Adds drawSelection() to the CodeMirror extension list in LatexEditor
  • Without this extension, vim visual mode selections were invisible — the .cm-selectionBackground CSS rule was already in place but had no elements to style
  • Selection appearance is now consistent between vim and non-vim mode

Test plan

  • Enable vim mode, press v to enter visual mode and move the cursor to select text — selection highlight should be visible
  • Disable vim mode, select text with mouse/keyboard — highlight should look the same

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.
@delibae
delibae merged commit 17a9b3c into delibae:main Jun 8, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants