From 3e556a1196d09c76605ba3cf24d94fd9c6b85d79 Mon Sep 17 00:00:00 2001 From: Kaz Kyheku Date: Wed, 5 Feb 2020 19:32:07 -0800 Subject: doc: fill-buf return value wrongly described. * txr.1: The fill-buf function returns the position after the last byte that was read, not the position of that that last byte. --- txr.1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/txr.1 b/txr.1 index 1461062d..9da947e5 100644 --- a/txr.1 +++ b/txr.1 @@ -24916,7 +24916,8 @@ do not support The .code fill-buf -function returns the position of the last byte that was successfully read. +function returns the position that is one byte past the last byte that +was successfully read. If an end-of-file or other error condition occurs before the buffer is filled through to the end, then the value returned is smaller than the buffer length. In this case, the area of the buffer beyond the read size retains its previous -- cgit v1.2.3