Skip to content

Commit

Permalink
Make flycheck--approximate-region more robust to invalid column numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
cpitclaudel committed Jul 8, 2021
1 parent 293ea29 commit 21d5226
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flycheck.el
Original file line number Diff line number Diff line change
Expand Up @@ -3817,7 +3817,7 @@ the THING at the column, and END the end of the THING."
(`symbols
;; Ensure that we're on a word or symbol. See
;; https://github.com/flycheck/flycheck/issues/1519
(and (< beg (point-max))
(and (<= (point-min) beg) (< beg (point-max))
(memq (char-syntax (char-after beg)) '(?w ?_))
(flycheck-bounds-of-thing-at-point 'symbol beg)))
(`sexps
Expand Down

0 comments on commit 21d5226

Please sign in to comment.