From 1e46543b0502a7f7a3d4e0cac7a9d8379d2f0692 Mon Sep 17 00:00:00 2001 From: nightwing Date: Mon, 20 Jan 2014 21:37:53 +0400 Subject: [PATCH] fix error marker column --- lib/ace/ext/error_marker.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/ace/ext/error_marker.js b/lib/ace/ext/error_marker.js index 28663c6d..5e87529e 100644 --- a/lib/ace/ext/error_marker.js +++ b/lib/ace/ext/error_marker.js @@ -108,8 +108,9 @@ exports.showErrorMarker = function(editor, dir) { var gutterAnno; if (annotations) { var annotation = annotations[0]; - if (annotation.pos && annotation.column == null) - pos.column = annotation.pos.sc; + pos.column = (annotation.pos && typeof annotation.column != "number" + ? annotation.pos.sc + : annotation.column) || 0; pos.row = annotation.row; gutterAnno = editor.renderer.$gutterLayer.$annotations[pos.row]; } else if (oldWidget) {