Skip to content

Commit

Permalink
Merge pull request #109 from vspinu/respect-narrowed
Browse files Browse the repository at this point in the history
Respect narrowed region in markdown-find-previous-prop
  • Loading branch information
jrblevin committed Feb 26, 2016
2 parents 84afca7 + 3affa66 commit 5969f49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion markdown-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -1602,7 +1602,7 @@ of (pos . property). pos is point if point contains non-nil PROP."
(previous-single-property-change
(point) prop nil (or lim (point-min))))))
(when (and (not (get-text-property res prop))
(> res 1)
(> res (point-min))
(get-text-property (1- res) prop))
(cl-decf res))
(when (and res (get-text-property res prop)) (cons res prop))))
Expand Down

0 comments on commit 5969f49

Please sign in to comment.