diff options
author | Emil Vanherp <emil@vanherp.me> | 2022-08-20 23:23:03 +0200 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2022-08-26 09:27:49 +0900 |
commit | 4bef330ce15d3ae80959415c24aba4700f5cbe35 (patch) | |
tree | d8147880cf4dc4387d3d6506c89d607e5f018703 /src/tui/light.go | |
parent | 8a5f7199649d56a92474676c9cf626204e3e8bcb (diff) |
Add support for ANSI strike-through (#2932)
Close #2932
Co-authored-by: Emil Vanherp <emil@vanherp.me>
Diffstat (limited to 'src/tui/light.go')
-rw-r--r-- | src/tui/light.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tui/light.go b/src/tui/light.go index b4117bce..0546caa8 100644 --- a/src/tui/light.go +++ b/src/tui/light.go @@ -856,6 +856,9 @@ func attrCodes(attr Attr) []string { if (attr & Reverse) > 0 { codes = append(codes, "7") } + if (attr & StrikeThrough) > 0 { + codes = append(codes, "9") + } return codes } |