diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-05 05:26:44 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-05 05:26:44 -0500 |
| commit | fd658b166a8dcf716c82cca28f370990a9df83af (patch) | |
| tree | 33dba19d419831a0743779b14fd19b8aaa70d7a5 /scripts | |
| parent | bac40a5dbc241cab055f92431a80b7971896fde4 (diff) | |
| download | org-drill-fd658b166a8dcf716c82cca28f370990a9df83af.tar.gz org-drill-fd658b166a8dcf716c82cca28f370990a9df83af.zip | |
fix: skip LaTeX preview on TTY frames (upstream #44)
Issue #44 (2021): running org-drill in a TTY emacsclient (the
reporter mentioned tmux) raised "Window system frame should be
used" because LaTeX preview helpers (org-latex-preview,
org--latex-preview-region) require a window system and weren't
guarded.
Wrapped both call sites with (when (display-graphic-p) ...).
- org-drill--show-latex-fragments: now a silent no-op on TTY
- present-default-answer's clear-and-preview block: same guard
LaTeX previews are inherently graphical. The right behavior on
TTY is to skip the preview rather than crash the session — TTY
users still see the underlying source text just fine.
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
