Skip to content

Commit 43db804

Browse files
committed
Build otherCursorDiv in display.js
1 parent a77f607 commit 43db804

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/display/Display.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,13 @@ export function Display(place, doc, input) {
2222
// Elements are added to these to represent selection and cursors.
2323
d.selectionDiv = elt("div", null, null, "position: relative; z-index: 1")
2424
d.cursorDiv = elt("div", null, "CodeMirror-cursors")
25+
d.otherCursorsDiv = elt("div", null, "CodeMirror-other-cursors")
2526
// A visibility: hidden element used to find the size of things.
2627
d.measure = elt("div", null, "CodeMirror-measure")
2728
// When lines outside of the viewport are measured, they are drawn in this.
2829
d.lineMeasure = elt("div", null, "CodeMirror-measure")
2930
// Wraps everything that needs to exist inside the vertically-padded coordinate system
30-
d.lineSpace = eltP("div", [d.measure, d.lineMeasure, d.selectionDiv, d.cursorDiv, d.lineDiv],
31+
d.lineSpace = eltP("div", [d.measure, d.lineMeasure, d.selectionDiv, d.cursorDiv, d.otherCursorsDiv, d.lineDiv],
3132
null, "position: relative; outline: none")
3233
let lines = eltP("div", [d.lineSpace], "CodeMirror-lines")
3334
// Moved around its parent to cover visible view.

0 commit comments

Comments
 (0)