Skip to content

Commit db1d66c

Browse files
gorhillmarijnh
authored andcommitted
[merge addon] Fix typo in hasMarker()
This was causing exceptions to be thrown when using custom markers.
1 parent 48561a6 commit db1d66c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

addon/merge/merge.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -918,7 +918,7 @@
918918
hasMarker: function(n) {
919919
var handle = this.cm.getLineHandle(n)
920920
if (handle.markedSpans) for (var i = 0; i < handle.markedSpans.length; i++)
921-
if (handle.markedSpans[i].mark.collapsed && handle.markedSpans[i].to != null)
921+
if (handle.markedSpans[i].marker.collapsed && handle.markedSpans[i].to != null)
922922
return true
923923
return false
924924
},

0 commit comments

Comments
 (0)