aboutsummaryrefslogtreecommitdiff
path: root/snippets/html-ts-mode/footnote-ref
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-11 09:12:32 -0500
committerCraig Jennings <c@cjennings.net>2026-05-11 09:12:32 -0500
commita70bb985c86aee2b701b40d5c3fae720863cfa4e (patch)
treedf4757e869460237a9cddd9e8462be8ab159ecec /snippets/html-ts-mode/footnote-ref
parent6045ba72c893a5718639217e4c25b948e7505cee (diff)
downloaddotemacs-a70bb985c86aee2b701b40d5c3fae720863cfa4e.tar.gz
dotemacs-a70bb985c86aee2b701b40d5c3fae720863cfa4e.zip
fix(ui-config): use the writeable cursor color in a live vterm
`vterm-mode' sets `buffer-read-only', so `cj/set-cursor-color-according-to-mode' painted the cursor with the read-only color (orange) whenever point was in a vterm. That includes the live terminal, not just `vterm-copy-mode'. But a live terminal takes input: keystrokes go to the process, not the buffer. So a live vterm now reports `unmodified' instead. `vterm-copy-mode' still reports `read-only': there it really is a read-only Emacs buffer the user navigates, and the orange cursor is the right signal. I pulled the state cond out of `cj/set-cursor-color-according-to-mode' into `cj/--buffer-cursor-state' so it's unit-testable without a real frame or `set-cursor-color'.
Diffstat (limited to 'snippets/html-ts-mode/footnote-ref')
0 files changed, 0 insertions, 0 deletions