]> git.eshelyaron.com Git - emacs.git/commitdiff
(compilation-error-properties): Store one more than end-col, if present, so
authorDaniel Pfeiffer <occitan@esperanto.org>
Fri, 18 Jun 2004 23:00:46 +0000 (23:00 +0000)
committerDaniel Pfeiffer <occitan@esperanto.org>
Fri, 18 Jun 2004 23:00:46 +0000 (23:00 +0000)
that transient-mark-mode will highlight last char too.

lisp/progmodes/compile.el

index 3a880a4c9eaa3aa2f7e4edfb78b130caafffc5e0..033ce883e5f12ae83f1b0ee34627701fa52076df 100644 (file)
@@ -583,7 +583,7 @@ Faces `compilation-error-face', `compilation-warning-face',
         (setq col (match-string-no-properties col))
         (setq col (- (string-to-number col) compilation-first-column)))
     (if (and end-col (setq end-col (match-string-no-properties end-col)))
-       (setq end-col (- (string-to-number end-col) compilation-first-column))
+       (setq end-col (- (string-to-number end-col) compilation-first-column -1))
       (if end-line (setq end-col -1)))
     (if (consp type)                   ; not a static type, check what it is.
        (setq type (or (and (car type) (match-end (car type)) 1)