* genio.c (scm_do_read_line): Maintain the line count correctly.
authorJim Blandy <jimb@red-bean.com>
Sat, 10 Oct 1998 21:27:34 +0000 (21:27 +0000)
committerJim Blandy <jimb@red-bean.com>
Sat, 10 Oct 1998 21:27:34 +0000 (21:27 +0000)
libguile/genio.c

index 6db2cb5..1e5598d 100644 (file)
@@ -182,6 +182,9 @@ scm_do_read_line (port, len)
 
   i = SCM_PTOBNUM (port);
   SCM_SYSCALL (s = (scm_ptobs[i].fgets) (port, len));
+  if (s)
+    SCM_INCLINE(port);
+
   return s;
 }