aboutsummaryrefslogtreecommitdiff
path: root/modules/custom-buffer-file.el
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
commitbd53b12561011dae7c4cfd25c793f1370942ab7f (patch)
tree950b9daa82deb497200fb87883a2ba5d28530120 /modules/custom-buffer-file.el
parent836145f734dcd4a15763c366dd5d9784c8dae6f5 (diff)
downloaddotemacs-bd53b12561011dae7c4cfd25c793f1370942ab7f.tar.gz
dotemacs-bd53b12561011dae7c4cfd25c793f1370942ab7f.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 'modules/custom-buffer-file.el')
0 files changed, 0 insertions, 0 deletions