summaryrefslogtreecommitdiff
path: root/runtime/doc
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-10-21 11:25:30 +0100
committerBram Moolenaar <Bram@vim.org>2022-10-21 11:25:30 +0100
commit5b2a3d77d320d76f12b1666938a9d58c2a848205 (patch)
tree435466e4c1e4d0ede36dd3e499e91ffebf0166e4 /runtime/doc
parent63c84731c1802bac36c1d1a82b3ef5960b35b089 (diff)
downloadvim-git-5b2a3d77d320d76f12b1666938a9d58c2a848205.tar.gz
patch 9.0.0810: readblob() returns empty when trying to read too muchv9.0.0810
Problem: readblob() returns empty when trying to read too much. Solution: Return what is available.
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/builtin.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/runtime/doc/builtin.txt b/runtime/doc/builtin.txt
index 5b383fdfc..5cb0bd950 100644
--- a/runtime/doc/builtin.txt
+++ b/runtime/doc/builtin.txt
@@ -6866,8 +6866,10 @@ readblob({fname} [, {offset} [, {size}]]) *readblob()*
readblob('/dev/ttyS0', 0, 10)
< When the file can't be opened an error message is given and
the result is an empty |Blob|.
- When trying to read bytes beyond the end of the file the
- result is an empty blob.
+ When the offset is beyond the end of the file the result is an
+ empty blob.
+ When trying to read more bytes than are available the result
+ is truncated.
Also see |readfile()| and |writefile()|.