about summary refs log tree commit diff stats
path: root/src/display/client.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-07-03 18:06:55 +0200
committerbptato <nincsnevem662@gmail.com>2023-07-03 18:06:55 +0200
commitee8310c5490d3366559304e056bda164f7fae726 (patch)
treea11afc973e07e63b46fe06b2059c79376342eef6 /src/display/client.nim
parent4a156d495ef6931db9fbc87978178cdbca676444 (diff)
downloadchawan-ee8310c5490d3366559304e056bda164f7fae726.tar.gz
Do not conditionally disable CastSizes
...because that doesn't work at all.
Diffstat (limited to 'src/display/client.nim')
-rw-r--r--src/display/client.nim7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/display/client.nim b/src/display/client.nim
index 79b433ae..5134f130 100644
--- a/src/display/client.nim
+++ b/src/display/client.nim
@@ -370,12 +370,7 @@ proc inputLoop(client: Client) =
   selector.registerHandle(int(client.console.tty.getFileHandle()), {Read}, nil)
   let sigwinch = selector.registerSignal(int(SIGWINCH), nil)
   while true:
-    when defined(CastSizes):
-      {.warning[CastSizes]:off.} # not our bug. TODO remove when fixed
-      let events = client.selector.select(-1)
-      {.warning[CastSizes]:on.}
-    else:
-      let events = client.selector.select(-1)
+    let events = client.selector.select(-1)
     for event in events:
       if Read in event.events:
         client.handleRead(event.fd)