Skip to content

fix: make text selection reliably visible - #1

Merged
jli-software merged 1 commit into
mainfrom
fix/mouse-selection-0.6.1
Sep 22, 2026
Merged

jli-software merged 1 commit into
mainfrom
fix/mouse-selection-0.6.1

Conversation

@jli-software

Copy link
Copy Markdown
Owner

Summary

  • stop the opaque active-line highlight from covering same-line CodeMirror selections
  • enforce a clear selection/background contrast in Sage and imported Omarchy themes
  • prepare the 0.6.1 hotfix metadata and changelog

Root cause

CodeMirror renders drawn selections behind the document layer. Rui used an opaque background on the active line, so a drag selection confined to that line existed in editor state but was visually hidden. Multi-line selections appeared to work because the non-active lines were not covered.

Verification

  • npm run check:version
  • npm run build
  • cargo fmt --manifest-path src-tauri/Cargo.toml --all -- --check
  • cargo clippy --manifest-path src-tauri/Cargo.toml --all-targets -- -D warnings
  • cargo test --manifest-path src-tauri/Cargo.toml (41 passed)
  • built bundle contains the state-derived cm-has-selection marker
  • independent source audit confirmed the same root cause in default and Vim modes on Linux and Windows

Terminal integration check

No change required: Linux installs ~/.local/bin/rui and Windows exposes opt-in user-PATH registration in Settings. Existing CLI argument tests cover relative paths and single-instance forwarding.

@jli-software
jli-software merged commit 088e921 into main Sep 22, 2026
5 checks 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.

1 participant