Skip to content
Snippets Groups Projects
Commit f8046853 authored by Marijn Haverbeke's avatar Marijn Haverbeke
Browse files

Properly call marker.find when scanning DOM text

Issue #4889
parent ab83c3c8
No related branches found
No related tags found
No related merge requests found
......@@ -420,7 +420,7 @@ function domTextBetween(cm, from, to, fromLine, toLine) {
let markerID = node.getAttribute("cm-marker"), range
if (markerID) {
let found = cm.findMarks(Pos(fromLine, 0), Pos(toLine + 1, 0), recognizeMarker(+markerID))
if (found.length && (range = found[0].find()))
if (found.length && (range = found[0].find(0)))
addText(getBetween(cm.doc, range.from, range.to).join(lineSep))
return
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment