[project @ 2005-05-27 19:26:34 by simonmar]
authorsimonmar <unknown>
Fri, 27 May 2005 19:26:34 +0000 (19:26 +0000)
committersimonmar <unknown>
Fri, 27 May 2005 19:26:34 +0000 (19:26 +0000)
hLookAhead: don't wait for a completely full buffer

GHC/Handle.hs

index 49ab6dc..a3cf25b 100644 (file)
@@ -1146,7 +1146,7 @@ hLookAhead handle = do
 
   -- fill up the read buffer if necessary
   new_buf <- if bufferEmpty buf
-               then fillReadBuffer fd is_line (haIsStream handle_) buf
+               then fillReadBuffer fd True (haIsStream handle_) buf
                else return buf
   
   writeIORef ref new_buf