aboutsummaryrefslogtreecommitdiff
path: root/tests/test-custom-ordering-unarrayify.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
commit4975fcbdbedbada8a7ea9851f1110bc2f31aa4ef (patch)
tree748ec5b9716b7549c6f804dd483a69bdcfc6f341 /tests/test-custom-ordering-unarrayify.el
parente730e00aa9ab1450e2e4148858f5481670de9fc2 (diff)
downloaddotemacs-4975fcbdbedbada8a7ea9851f1110bc2f31aa4ef.tar.gz
dotemacs-4975fcbdbedbada8a7ea9851f1110bc2f31aa4ef.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-custom-ordering-unarrayify.el')
0 files changed, 0 insertions, 0 deletions