diff options
author | bptato <nincsnevem662@gmail.com> | 2022-07-13 22:58:35 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2022-07-13 22:58:35 +0200 |
commit | c0d6e76d94a25cbeb7d4f0aff9bc79c733f10fd5 (patch) | |
tree | 4141db29789074b6b92f06e79687fe3b6b856c3d /src/utils | |
parent | e780de79f0193a67a74b834c9bfbf2e0ef8e3c03 (diff) | |
download | chawan-c0d6e76d94a25cbeb7d4f0aff9bc79c733f10fd5.tar.gz |
Don't zero-fill makewidthtable
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/twtstr.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/twtstr.nim b/src/utils/twtstr.nim index 3081183b..9799f5d1 100644 --- a/src/utils/twtstr.nim +++ b/src/utils/twtstr.nim @@ -810,7 +810,7 @@ func is_dwidth_cjk(r: Rune): bool = # compute lookup table on startup var width_table*: array[0..0x10FFFF, byte] -func makewidthtable*(cjk: bool): array[0..0x10FFFF, byte] = +func makewidthtable*(cjk: bool): array[0..0x10FFFF, byte] {.noInit.} = for r in low(char)..high(char): if r.isControlChar(): result[int(r)] = 0 |