diff options
| author | Jonas Bernoulli <jonas@bernoul.li> | 2015-08-15 18:22:44 +0200 |
|---|---|---|
| committer | Jonas Bernoulli <jonas@bernoul.li> | 2015-08-15 18:22:44 +0200 |
| commit | a43d84072392bde8560dae815a56e3a6bf51ea6b (patch) | |
| tree | 51bca80e6a85463c97b6a569870d43dbe4bdc1b8 /lisp | |
| parent | 36be43de9acfa0a2f0c1db8ebab582532e00e13e (diff) | |
make git-commit-flyspell-verify more robust
The previous implementation sometimes did not succeed in keeping
flyspell from checking certain parts of the instructions comment.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/git-commit.el | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lisp/git-commit.el b/lisp/git-commit.el index f8b03b4..4659979 100644 --- a/lisp/git-commit.el +++ b/lisp/git-commit.el @@ -429,12 +429,7 @@ finally check current non-comment text." (flyspell-buffer)) (defun git-commit-flyspell-verify () - (not (memq (get-text-property (point) 'face) - '(font-lock-comment-face font-lock-comment-delimiter-face - git-commit-comment-branch git-commit-comment-detached - git-commit-comment-heading git-commit-comment-file - git-commit-comment-action git-commit-pseudo-header - git-commit-known-pseudo-header)))) + (not (= (char-after (line-beginning-position)) ?#))) (defun git-commit-finish-query-functions (force) (run-hook-with-args-until-failure |
