Skip to content

Commit

Permalink
Take column number into account
Browse files Browse the repository at this point in the history
  • Loading branch information
swsnr committed Dec 29, 2012
1 parent b3b7d04 commit 25f34fa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions flycheck.el
Expand Up @@ -598,10 +598,10 @@ Add overlays and report a proper flycheck status."
(save-excursion
(goto-char (point-min))
(forward-line (- (flycheck-error-line-no err) 1))
;; TODO: Consider column number
(let* ((level (flycheck-error-level err))
(beg (line-beginning-position))
(end (line-end-position))
(column (flycheck-error-col-no err))
(beg (+ (line-beginning-position) (if column (- column 1) 0)))
(end (if column (+ beg 1) (line-end-position)))
(category (cdr (assq level flycheck-overlay-categories-alist)))
(text (flycheck-error-text err))
(overlay (make-overlay beg end (flycheck-error-buffer err)))
Expand Down

0 comments on commit 25f34fa

Please sign in to comment.