Skip to content

Commit

Permalink
Fix drawing of marked text with only attributes
Browse files Browse the repository at this point in the history
Closes #6414
  • Loading branch information
marijnh committed Sep 15, 2020
1 parent b6da8bf commit db719a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/line/line_data.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ function buildToken(builder, text, style, startStyle, endStyle, css, attributes)
}
}
builder.trailingSpace = displayText.charCodeAt(text.length - 1) == 32
if (style || startStyle || endStyle || mustWrap || css) {
if (style || startStyle || endStyle || mustWrap || css || attributes) {
let fullStyle = style || ""
if (startStyle) fullStyle += startStyle
if (endStyle) fullStyle += endStyle
Expand Down

0 comments on commit db719a2

Please sign in to comment.