about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--src/local/term.nim10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/local/term.nim b/src/local/term.nim
index b30c1a56..ccb1806d 100644
--- a/src/local/term.nim
+++ b/src/local/term.nim
@@ -680,11 +680,11 @@ proc applyConfig(term: Terminal) =
       if cs != CHARSET_UNKNOWN:
         term.cs = cs
         break
-    if term.cs in {CHARSET_UTF_8, CHARSET_UTF_16_LE, CHARSET_UTF_16_BE,
-        CHARSET_REPLACEMENT}:
-      term.cs = CHARSET_UTF_8
-    else:
-      term.te = newTextEncoder(term.cs)
+  if term.cs in {CHARSET_UTF_8, CHARSET_UTF_16_LE, CHARSET_UTF_16_BE,
+      CHARSET_REPLACEMENT}:
+    term.cs = CHARSET_UTF_8
+  else:
+    term.te = newTextEncoder(term.cs)
   term.applyConfigDimensions()
 
 proc outputGrid*(term: Terminal) =