Skip to content

Commit d8e1328

Browse files
authored
Update src/block-cursor.ts
1 parent 4b9e1a0 commit d8e1328

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/block-cursor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ function measureCursor(cm: CodeMirror, view: EditorView, cursor: SelectionRange,
214214
}
215215
let h = (pos.bottom - pos.top);
216216
return new Piece((left - base.left)/view.scaleX, (pos.top - base.top + h * (1 - hCoeff))/view.scaleY, h * hCoeff/view.scaleY,
217-
style.fontFamily, parseFloat(style.fontSize) + "px", style.fontWeight, style.color,
217+
style.fontFamily, style.fontSize, style.fontWeight, style.color,
218218
primary ? "cm-fat-cursor cm-cursor-primary" : "cm-fat-cursor cm-cursor-secondary",
219219
letter, hCoeff != 1)
220220
} else {

0 commit comments

Comments
 (0)