This commit is contained in:
Alexandru Dima 2022-12-11 06:53:41 +01:00 committed by GitHub
parent 3ebfaadb9b
commit c94c240ade
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -213,9 +213,10 @@ export class ViewLine implements IVisibleLine {
const endColumn = (selection.endLineNumber === lineNumber ? selection.endColumn : lineData.maxColumn);
if (startColumn < endColumn) {
if (isHighContrast(options.themeType) || this._options.renderWhitespace !== 'selection') {
if (isHighContrast(options.themeType)) {
actualInlineDecorations.push(new LineDecoration(startColumn, endColumn, 'inline-selected-text', InlineDecorationType.Regular));
} else {
}
if (this._options.renderWhitespace === 'selection') {
if (!selectionsOnLine) {
selectionsOnLine = [];
}