Skip to content

Commit

Permalink
Enable attributes in classic mode, add strikeout
Browse files Browse the repository at this point in the history
  • Loading branch information
ctapmex committed Jun 14, 2021
1 parent b0e0c55 commit 99e6769
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions src/FarEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1220,16 +1220,18 @@ FarColor FarEditor::convert(const StyledRegion* rd) const
if (rd->bback) {
col.BackgroundColor = rd->back;
}
if (TrueMod) {
if (rd->style & StyledRegion::RD_BOLD) {
col.Flags |= FCF_FG_BOLD;
}
if (rd->style & StyledRegion::RD_ITALIC) {
col.Flags |= FCF_FG_ITALIC;
}
if (rd->style & StyledRegion::RD_UNDERLINE) {
col.Flags |= FCF_FG_UNDERLINE;
}

if (rd->style & StyledRegion::RD_BOLD) {
col.Flags |= FCF_FG_BOLD;
}
if (rd->style & StyledRegion::RD_ITALIC) {
col.Flags |= FCF_FG_ITALIC;
}
if (rd->style & StyledRegion::RD_UNDERLINE) {
col.Flags |= FCF_FG_UNDERLINE;
}
if (rd->style & StyledRegion::RD_STRIKEOUT) {
col.Flags |= FCF_FG_UNDERLINE;
}
}

Expand Down

0 comments on commit 99e6769

Please sign in to comment.