diff options
Diffstat (limited to 'src/types')
-rw-r--r-- | src/types/cell.nim | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/types/cell.nim b/src/types/cell.nim index c7a92c96..f3ffd919 100644 --- a/src/types/cell.nim +++ b/src/types/cell.nim @@ -105,9 +105,6 @@ func width*(line: FlexibleLine): int = func width*(cell: FixedCell): int = return cell.str.width() -func newFormat*(): Format = - return Format(fgcolor: defaultColor, bgcolor: defaultColor) - # Get the first format cell after pos, if any. func findFormatN*(line: FlexibleLine|SimpleFlexibleLine, pos: int): int = var i = 0 @@ -252,14 +249,14 @@ proc parseSGRAspect(parser: AnsiCodeParser, format: var Format, format.flags.incl(entry.flag) return true elif u == 0: - format = newFormat() + format = Format() return true else: return parser.parseSGRColor(format, i, u) proc parseSGR(parser: AnsiCodeParser, format: var Format) = if parser.params.len == 0: - format = newFormat() + format = Format() else: var i = 0 while i < parser.params.len: |