aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/compile.el
diff options
context:
space:
mode:
authorSam Steingold <[email protected]>2009-03-03 22:26:24 +0000
committerSam Steingold <[email protected]>2009-03-03 22:26:24 +0000
commitee15d7591b3d38fd46c02f814b4c49604ca88cb2 (patch)
treea81196804a4d57fcb04e15afee32cfbc4e4e5a8e /lisp/progmodes/compile.el
parent9927d25059bbe990605a4e6bf8ad74946b0d575a (diff)
(compilation-move-to-column): Guard against negative col values.
Diffstat (limited to 'lisp/progmodes/compile.el')
-rw-r--r--lisp/progmodes/compile.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el
index 68a408f698..ee2e09132e 100644
--- a/lisp/progmodes/compile.el
+++ b/lisp/progmodes/compile.el
@@ -864,7 +864,7 @@ from a different message."
If SCREEN is non-nil, columns are screen columns, otherwise, they are
just char-counts."
(if screen
- (move-to-column col)
+ (move-to-column (max col 0))
(goto-char (min (+ (line-beginning-position) col) (line-end-position)))))
(defun compilation-internal-error-properties (file line end-line col end-col type fmts)