Skip to content

Commit 04659a8

Browse files
committed
Update to avoid self cursor been overlapped by other cursors
1 parent 490cdc9 commit 04659a8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/codemirror.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ div.CodeMirror-dragcursors {
326326

327327
div.CodeMirror-other-cursors {
328328
position:relative;
329-
z-index:3;
329+
z-index: 3;
330330
}
331331

332332
.CodeMirror-selected { background: #d9d9d9; }

src/display/Display.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export function Display(place, doc, input) {
2828
// When lines outside of the viewport are measured, they are drawn in this.
2929
d.lineMeasure = elt("div", null, "CodeMirror-measure")
3030
// Wraps everything that needs to exist inside the vertically-padded coordinate system
31-
d.lineSpace = eltP("div", [d.measure, d.lineMeasure, d.selectionDiv, d.cursorDiv, d.otherCursorsDiv, d.lineDiv],
31+
d.lineSpace = eltP("div", [d.measure, d.lineMeasure, d.otherCursorsDiv, d.selectionDiv, d.cursorDiv, d.lineDiv],
3232
null, "position: relative; outline: none")
3333
let lines = eltP("div", [d.lineSpace], "CodeMirror-lines")
3434
// Moved around its parent to cover visible view.

0 commit comments

Comments
 (0)