about summary refs log tree commit diff stats
path: root/src/utils
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-05-18 15:45:17 +0200
committerbptato <nincsnevem662@gmail.com>2024-05-18 15:45:17 +0200
commitfdd7ce5df6bdca50ade49c80773ed3215a714db1 (patch)
treea85e40c763f3f41555eaa1353d86b9f085972dac /src/utils
parente17a98c66428e6482900dddf2023ac8126bceb16 (diff)
downloadchawan-fdd7ce5df6bdca50ade49c80773ed3215a714db1.tar.gz
forkserver: simplify fcLoadConfig
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/strwidth.nim4
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 =