Remove doom*set-indirect-buffer-filename hack

This was done to help the modeline build its file path in indirect
buffers, but this has been fixed by using buffer-base-buffer.

Both ui/modeline and ui/doom-modeline have been refactored to
accommodate this.
This commit is contained in:
Henrik Lissner 2018-09-01 12:31:37 +02:00
parent 72d8c5dd56
commit 712b775f36
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
3 changed files with 33 additions and 40 deletions

View file

@ -434,7 +434,7 @@ Meant for `+modeline-buffer-path-function'."
:init "%b"
:faces t
(if buffer-file-name
(+modeline-build-path buffer-file-name)
(+modeline-build-path (buffer-file-name (buffer-base-buffer)))
"%b"))
(def-modeline-segment! +modeline-buffer-directory