Fix magit-status-no-new-window
failing to open repos by symlink
`let`s `default-directory` instead of using the `directory` argument of `magit-status`. This allows it to use it's normal directory handling.
This commit is contained in:
parent
25eecc532f
commit
99390edb5c
@ -480,10 +480,11 @@
|
|||||||
:init
|
:init
|
||||||
(defun magit-status-no-new-window (directory)
|
(defun magit-status-no-new-window (directory)
|
||||||
(interactive "D")
|
(interactive "D")
|
||||||
(progn (let ((magit-display-buffer-function
|
(let ((magit-display-buffer-function
|
||||||
'(lambda (buffer)
|
'(lambda (buffer)
|
||||||
(display-buffer buffer '(display-buffer-same-window)))))
|
(display-buffer buffer '(display-buffer-same-window))))
|
||||||
(magit-status directory)))))
|
(default-directory directory))
|
||||||
|
(magit-status))))
|
||||||
|
|
||||||
(use-package popwin :ensure
|
(use-package popwin :ensure
|
||||||
:disabled
|
:disabled
|
||||||
|
Loading…
Reference in New Issue
Block a user