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

(cherry picked from commit 3cf31fb)
  • Loading branch information
PankajBhojwani authored and DHowett committed Oct 19, 2020
1 parent 2592cc4 commit 57ca2ec
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 57ca2ec

Please sign in to comment.