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:
duianto 2017-08-11 08:38:26 +02:00 committed by bmag
parent cc1970ce44
commit e2a45e0c39
1 changed files with 6 additions and 6 deletions

View File

@ -1040,12 +1040,12 @@ REFRESH if the buffer should be redrawn."
(spacemacs-buffer//insert-footer)
(spacemacs-buffer/set-mode-line spacemacs--default-mode-line)
(force-mode-line-update)
(spacemacs-buffer-mode))))
(if save-line
(progn (goto-char (point-min))
(forward-line (1- save-line))
(forward-to-indentation 0))
(spacemacs-buffer/goto-link-line))
(spacemacs-buffer-mode)))
(if save-line
(progn (goto-char (point-min))
(forward-line (1- save-line))
(forward-to-indentation 0))
(spacemacs-buffer/goto-link-line)))
(switch-to-buffer spacemacs-buffer-name)
(spacemacs//redisplay))))