about summary refs log tree commit diff stats
path: root/src/buffer/buffer.nim
diff options
context:
space:
mode:
Diffstat (limited to 'src/buffer/buffer.nim')
-rw-r--r--src/buffer/buffer.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buffer/buffer.nim b/src/buffer/buffer.nim
index 5d69325f..d28ebbb0 100644
--- a/src/buffer/buffer.nim
+++ b/src/buffer/buffer.nim
@@ -1107,8 +1107,8 @@ proc runBuffer(buffer: Buffer, rfd: int) =
           if event.fd == rfd:
             try:
               buffer.readCommand()
-            except IOError:
-              #eprint "ERROR IN BUFFER", $buffer.location & "\nMESSAGE:",
+            except EOFError:
+              #eprint "EOF error", $buffer.location & "\nMESSAGE:",
               #       getCurrentExceptionMsg() & "\n",
               #       getStackTrace(getCurrentException())
               break loop