diff options
author | bptato <nincsnevem662@gmail.com> | 2024-05-18 15:45:17 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-05-18 15:45:17 +0200 |
commit | fdd7ce5df6bdca50ade49c80773ed3215a714db1 (patch) | |
tree | a85e40c763f3f41555eaa1353d86b9f085972dac /src/utils | |
parent | e17a98c66428e6482900dddf2023ac8126bceb16 (diff) | |
download | chawan-fdd7ce5df6bdca50ade49c80773ed3215a714db1.tar.gz |
forkserver: simplify fcLoadConfig
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/strwidth.nim | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/utils/strwidth.nim b/src/utils/strwidth.nim index a3acbef7..fe9df92d 100644 --- a/src/utils/strwidth.nim +++ b/src/utils/strwidth.nim @@ -6,9 +6,7 @@ import utils/map include res/map/charwidth_gen # One of the few global variables in the code. Honestly, it should not exist. -var isCJKAmbiguous = false -proc set_cjk_ambiguous*(b: bool) = - isCJKAmbiguous = b +var isCJKAmbiguous* = false # Warning: this shouldn't be called without normalization. func width*(r: Rune): int = |