Fix switch to home buffer moves prev buffers cursor
Switching to the Spacemacs home buffer `SPC b h`, moves the previous buffers cursor to the top.
This commit is contained in:
parent
cc1970ce44
commit
e2a45e0c39
1 changed files with 6 additions and 6 deletions
|
@ -1040,12 +1040,12 @@ REFRESH if the buffer should be redrawn."
|
||||||
(spacemacs-buffer//insert-footer)
|
(spacemacs-buffer//insert-footer)
|
||||||
(spacemacs-buffer/set-mode-line spacemacs--default-mode-line)
|
(spacemacs-buffer/set-mode-line spacemacs--default-mode-line)
|
||||||
(force-mode-line-update)
|
(force-mode-line-update)
|
||||||
(spacemacs-buffer-mode))))
|
(spacemacs-buffer-mode)))
|
||||||
(if save-line
|
(if save-line
|
||||||
(progn (goto-char (point-min))
|
(progn (goto-char (point-min))
|
||||||
(forward-line (1- save-line))
|
(forward-line (1- save-line))
|
||||||
(forward-to-indentation 0))
|
(forward-to-indentation 0))
|
||||||
(spacemacs-buffer/goto-link-line))
|
(spacemacs-buffer/goto-link-line)))
|
||||||
(switch-to-buffer spacemacs-buffer-name)
|
(switch-to-buffer spacemacs-buffer-name)
|
||||||
(spacemacs//redisplay))))
|
(spacemacs//redisplay))))
|
||||||
|
|
||||||
|
|
Reference in a new issue