about summary refs log tree commit diff stats
path: root/src/config
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-03-21 18:27:06 +0100
committerbptato <nincsnevem662@gmail.com>2024-03-21 18:27:06 +0100
commitdfd6c3f2f0b5494da192ee60f2c588a92ceef089 (patch)
tree7da80dc28620fc8d9219d89c87f4af4962a6e43b /src/config
parent4a897f27bbfb114f256890eb70c4d7e053f0e19b (diff)
downloadchawan-dfd6c3f2f0b5494da192ee60f2c588a92ceef089.tar.gz
cell: update FormatFlag naming, remove useless templates
Diffstat (limited to 'src/config')
-rw-r--r--src/config/config.nim14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/config/config.nim b/src/config/config.nim
index b22b532e..432f5875 100644
--- a/src/config/config.nim
+++ b/src/config/config.nim
@@ -460,13 +460,13 @@ proc parseConfigValue(ctx: var ConfigParser; x: var FormatMode; v: TomlValue;
     let vv = v.a[i]
     typeCheck(vv, VALUE_STRING, kk)
     case vv.s
-    of "bold": x.incl(FLAG_BOLD)
-    of "italic": x.incl(FLAG_ITALIC)
-    of "underline": x.incl(FLAG_UNDERLINE)
-    of "reverse": x.incl(FLAG_REVERSE)
-    of "strike": x.incl(FLAG_STRIKE)
-    of "overline": x.incl(FLAG_OVERLINE)
-    of "blink": x.incl(FLAG_BLINK)
+    of "bold": x.incl(ffBold)
+    of "italic": x.incl(ffItalic)
+    of "underline": x.incl(ffUnderline)
+    of "reverse": x.incl(ffReverse)
+    of "strike": x.incl(ffStrike)
+    of "overline": x.incl(ffOverline)
+    of "blink": x.incl(ffBlink)
     else:
       raise newException(ValueError, "unknown format mode '" & vv.s &
         "' for key " & kk)