diff options
| author | Benjamin Lindqvist <benjamin.lindqvist@endian.se> | 2019-04-02 17:25:09 +0200 |
|---|---|---|
| committer | Benjamin Lindqvist <benjamin.lindqvist@endian.se> | 2019-04-02 17:25:09 +0200 |
| commit | d1df599254f4c250720ae98dd69dada89535a295 (patch) | |
| tree | 395b872440c76a5fd506ac66aecfd70f0600edd8 | |
| parent | f75455f81503b54fbcc6d97cc6537cd23dcf366b (diff) | |
Only check file-remote-p if buffer is file
| -rw-r--r-- | feebleline.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/feebleline.el b/feebleline.el index 259a8b7..6fbdebd 100644 --- a/feebleline.el +++ b/feebleline.el @@ -61,7 +61,7 @@ (defun feebleline-git-branch () "Return current git branch, unless file is remote." - (if (file-remote-p (buffer-file-name)) + (if (and (buffer-file-name) (file-remote-p (buffer-file-name))) "-" (magit-get-current-branch))) |
