summaryrefslogtreecommitdiff
path: root/feebleline.el
diff options
context:
space:
mode:
authorBenjamin Lindqvist <benjamin.lindqvist@endian.se>2019-04-02 17:25:09 +0200
committerBenjamin Lindqvist <benjamin.lindqvist@endian.se>2019-04-02 17:25:09 +0200
commitd1df599254f4c250720ae98dd69dada89535a295 (patch)
tree395b872440c76a5fd506ac66aecfd70f0600edd8 /feebleline.el
parentf75455f81503b54fbcc6d97cc6537cd23dcf366b (diff)
Only check file-remote-p if buffer is file
Diffstat (limited to 'feebleline.el')
-rw-r--r--feebleline.el2
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)))