aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2014-12-02 11:41:14 -0500
committerJustin M. Keyes <justinkz@gmail.com>2014-12-02 11:41:14 -0500
commit26b2f9ab11a3b50a5066c4509688e989bb4e8e92 (patch)
treec6a2526e98e33239bed8b1c40758021ed1197bab /runtime
parentecf1e672e11ec5a2d8cf97276405aca83f4d9786 (diff)
parentb3151af69ca545e7eac3824d6101b7b8b5701b82 (diff)
downloadrneovim-26b2f9ab11a3b50a5066c4509688e989bb4e8e92.tar.gz
rneovim-26b2f9ab11a3b50a5066c4509688e989bb4e8e92.tar.bz2
rneovim-26b2f9ab11a3b50a5066c4509688e989bb4e8e92.zip
Merge pull request #1567 from bfredl/systemlist
systemlist: add `keepempty` option to preserve final newline
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/eval.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt
index 91a9f1292f..0778cf6122 100644
--- a/runtime/doc/eval.txt
+++ b/runtime/doc/eval.txt
@@ -6188,11 +6188,12 @@ system({expr} [, {input}]) *system()* *E677*
Use |:checktime| to force a check.
-systemlist({expr} [, {input}]) *systemlist()*
+systemlist({expr} [, {input} [, {keepempty}]]) *systemlist()*
Same as |system()|, but returns a |List| with lines (parts of
output separated by NL) with NULs transformed into NLs. Output
is the same as |readfile()| will output with {binary} argument
- set to "b".
+ set to "b", except that a final newline is not preserved,
+ unless {keepempty} is present and it's non-zero.
Returns an empty string on error, so be careful not to run
into |E706|.