aboutsummaryrefslogtreecommitdiff
path: root/tests/test-wttrin-clear-cache.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-09-13 09:46:11 -0500
committerCraig Jennings <c@cjennings.net>2026-09-13 09:46:11 -0500
commitf9449f6c8d4f5d174bea4a878632384f2b760c5f (patch)
treee5bf341b6d39f9535d708900e948a925cc5915a8 /tests/test-wttrin-clear-cache.el
parentcb7019387d8b5bd7ebd385272126accfd37e4b1b (diff)
downloademacs-wttrin-f9449f6c8d4f5d174bea4a878632384f2b760c5f.tar.gz
emacs-wttrin-f9449f6c8d4f5d174bea4a878632384f2b760c5f.zip
fix: match the F display flag case-sensitively
wttrin--effective-display-options checked for an existing F with string-match-p, which honors case-fold-search. That defaults to t, so a lowercase f in wttrin-display-options read as F and the flag was never added. wttr.in flags are case-sensitive (q and Q differ), so I bound case-fold-search to nil inside the helper. The tests cover a lowercase f under both case-fold settings. They also pin that a non-string options value signals wrong-type-argument rather than building a bad URL.
Diffstat (limited to 'tests/test-wttrin-clear-cache.el')
0 files changed, 0 insertions, 0 deletions