Skip to content

Commit

Permalink
Fix the "visual representation" optimization for hyperlinks (#7738)
Browse files Browse the repository at this point in the history
Closes #7700
  • Loading branch information
PankajBhojwani authored Sep 28, 2020
1 parent c3b3f5f commit 3cf31fb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/buffer/out/TextAttribute.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@ class TextAttribute final
return !IsAnyGridLineEnabled() && // grid lines have a visual representation
// crossed out, doubly and singly underlined have a visual representation
WI_AreAllFlagsClear(_extendedAttrs, ExtendedAttributes::CrossedOut | ExtendedAttributes::DoublyUnderlined | ExtendedAttributes::Underlined) &&
// hyperlinks have a visual representation
!IsHyperlink() &&
// all other attributes do not have a visual representation
(_wAttrLegacy & META_ATTRS) == (other._wAttrLegacy & META_ATTRS) &&
((checkForeground && _foreground == other._foreground) ||
Expand Down

0 comments on commit 3cf31fb

Please sign in to comment.