fix error marker column
This commit is contained in:
parent
9cbcfb35d3
commit
1e46543b05
1 changed files with 3 additions and 2 deletions
|
|
@ -108,8 +108,9 @@ exports.showErrorMarker = function(editor, dir) {
|
||||||
var gutterAnno;
|
var gutterAnno;
|
||||||
if (annotations) {
|
if (annotations) {
|
||||||
var annotation = annotations[0];
|
var annotation = annotations[0];
|
||||||
if (annotation.pos && annotation.column == null)
|
pos.column = (annotation.pos && typeof annotation.column != "number"
|
||||||
pos.column = annotation.pos.sc;
|
? annotation.pos.sc
|
||||||
|
: annotation.column) || 0;
|
||||||
pos.row = annotation.row;
|
pos.row = annotation.row;
|
||||||
gutterAnno = editor.renderer.$gutterLayer.$annotations[pos.row];
|
gutterAnno = editor.renderer.$gutterLayer.$annotations[pos.row];
|
||||||
} else if (oldWidget) {
|
} else if (oldWidget) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue