Permalink
Browse files

gh-110 Fixed line parsing to include tabs

  • Loading branch information...
Matthew O. Smith
Matthew O. Smith committed Jan 20, 2014
1 parent 83bb083 commit 6dcd7d2040b7e74e3d3504110bcda8c6640fcfa2
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/main/lisp/malabar-flycheck.el
@@ -31,9 +31,9 @@
(defun malabar-flycheck-error-column (lines)
"Find the column of the error by looking for the magic caret. Expand tabs to 8 spaces."
- (let* ((caret-line (-first (lambda (s) (string-match "\\( *\\^\\).*" s)) lines))
+ (let* ((caret-line (-first (lambda (s) (string-match "\\([\t ]*\\^\\).*" s)) lines))
(g1 (when caret-line (match-string 1 caret-line)))
- (g2 (when g1 (replace-regexp-in-string "\t" " " g1))))
+ (g2 (when g1 (replace-regexp-in-string " " "!" g1))))
(when g2 (length g2))))

0 comments on commit 6dcd7d2

Please sign in to comment.