diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-11 09:12:32 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-11 09:12:32 -0500 |
| commit | a70bb985c86aee2b701b40d5c3fae720863cfa4e (patch) | |
| tree | df4757e869460237a9cddd9e8462be8ab159ecec /tests/test-cj-window-geometry-lib.el | |
| parent | 6045ba72c893a5718639217e4c25b948e7505cee (diff) | |
| download | dotemacs-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 'tests/test-cj-window-geometry-lib.el')
0 files changed, 0 insertions, 0 deletions
