Correctly reset state when starting a new hunk.
This commit is contained in:
parent
abb3b6880c
commit
7a3e2bdf2c
1 changed files with 4 additions and 2 deletions
4
magit.el
4
magit.el
|
@ -228,8 +228,10 @@
|
|||
(point) (+ (point) n-files))))
|
||||
(cond ((looking-at "^diff")
|
||||
(magit-wash-diff-propertize-diff head-beg head-end)
|
||||
(magit-wash-diff-propertize-hunk head-beg head-end hunk-beg)
|
||||
(setq head-beg (point))
|
||||
(setq head-end nil))
|
||||
(setq head-end nil)
|
||||
(setq hunk-beg nil))
|
||||
((looking-at "^@+")
|
||||
(setq n-files (- (length (match-string 0)) 1))
|
||||
(if (null head-end)
|
||||
|
|
Loading…
Reference in a new issue