aboutsummaryrefslogtreecommitdiff
path: root/projectile.el
diff options
context:
space:
mode:
Diffstat (limited to 'projectile.el')
-rw-r--r--projectile.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/projectile.el b/projectile.el
index 0584f66..2d87bb3 100644
--- a/projectile.el
+++ b/projectile.el
@@ -2170,6 +2170,10 @@ Returns a list of (KEEP IGNORE ENSURE) or nil if the file doesn't exist."
(with-temp-buffer
(insert-file-contents dirconfig)
(while (not (eobp))
+ ;; Skip leading whitespace so prefix dispatch isn't defeated by
+ ;; an accidental space or tab before the +/-/! marker or the
+ ;; configured comment character.
+ (skip-chars-forward " \t")
(pcase (char-after)
;; ignore comment lines if prefix char has been set
((pred (lambda (leading-char)