about summary refs log tree commit diff stats
path: root/src/utils/twtstr.nim
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/twtstr.nim')
-rw-r--r--src/utils/twtstr.nim10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/utils/twtstr.nim b/src/utils/twtstr.nim
index 29a38c59..730f8b32 100644
--- a/src/utils/twtstr.nim
+++ b/src/utils/twtstr.nim
@@ -325,12 +325,10 @@ func makewidthtable(): array[0..0x10FFFF, byte] =
     else:
       result[ucs] = 1
 
-when defined(full):
-  # store lookup table in executable
-  const width_table = makewidthtable()
-else:
-  # compute lookup table on startup
-  let width_table = makewidthtable()
+# compute lookup table on startup
+# TODO: we could have an option to store it in the executable but honestly I
+# don't see the need to
+let width_table = makewidthtable()
 
 {.push boundChecks:off.}
 func width*(r: Rune): int =