aboutsummaryrefslogtreecommitdiff
path: root/tests/test-prog-webdev-setup.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-06-12 09:53:28 -0500
committerCraig Jennings <c@cjennings.net>2026-06-12 09:53:28 -0500
commitf4c84e25853178107788ac86a6a4dc193630c10f (patch)
treee059ca3fae56bf07b53f7fc6486f47a15e8e2b17 /tests/test-prog-webdev-setup.el
parent7c12eb30c264ad6f92ee35152a82559a9d1524ea (diff)
downloaddotemacs-f4c84e25853178107788ac86a6a4dc193630c10f.tar.gz
dotemacs-f4c84e25853178107788ac86a6a4dc193630c10f.zip
fix(ui-navigation): correct cj/undo-kill-buffer off-by-one on plain invocation
(interactive "p") forces arg >= 1, so the old (if arg (nth arg ...) (car ...)) always took the nth branch and plain M-S-z re-opened the second-most-recently-killed file. Index with (nth (1- arg) ...) so a numeric prefix is 1-based and no prefix re-opens the most recent. The two undo-kill tests now exercise the real no-prefix path (arg=1 reopens the first) and a 1-based numeric prefix; both failed against the bug and pass after. Filed a follow-up for a separate delq-vs-delete skip-visited defect found in the same function.
Diffstat (limited to 'tests/test-prog-webdev-setup.el')
0 files changed, 0 insertions, 0 deletions