Skip to content

Commit

Permalink
[core] Fix spacemacs/alternate-buffer for other windows
Browse files Browse the repository at this point in the history
According to its docstring, `(spacemacs/alternate-buffer WINDOW)` should switch
between the current and last buffer in WINDOW. Previously, it switched between
the (window-buffer WINDOW) and the last buffer of the selected window, which
does not seem intended.
  • Loading branch information
fnussbaum authored and smile13241324 committed Oct 5, 2024
1 parent 7909b8e commit 6fadda7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/core-funcs.el
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ only switches between the current layout's buffers."
(and (not (eq buffer my-buffer))
(funcall usefulp buffer)
(funcall predicate buffer))))
(window-prev-buffers)
(window-prev-buffers window)
default))
(if (not buf)
(message "Last buffer not found.")
Expand Down

0 comments on commit 6fadda7

Please sign in to comment.