fix: bug where selection layer leaves a ghost residual line below wrapped lines after deselecting (#432)

Co-authored-by: hoangnh290 <hoangnh290@viettel.com.vn>
This commit is contained in:
Nguyễn Huy Hoàng
2026-04-23 20:30:18 +07:00
committed by GitHub
parent 915af7e3de
commit 929f6202a4

View File

@@ -67,6 +67,13 @@
@apply bg-selection !important;
}
/* Fix WebKit/WKWebView rendering bug where selection layer leaves a ghost
residual line below wrapped lines after deselecting (CodeMirror issue #1600, #1627).
The layer div must be hidden when empty to force a repaint. */
.cm-selectionLayer:empty {
display: none;
}
/* Style gutters */
.cm-gutters {