aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-01-15 23:14:20 +0100
committerJustin M. Keyes <justinkz@gmail.com>2018-01-15 23:50:40 +0100
commitf8f7f9d5f5aead86541ffcd12e291b6dfb6811e5 (patch)
tree99368a7984c80d4b48a2a6dfba085ba05c73b280 /runtime
parentde0a9548f7bf55bdf0202a2dcebb86a92f2d989d (diff)
downloadrneovim-f8f7f9d5f5aead86541ffcd12e291b6dfb6811e5.tar.gz
rneovim-f8f7f9d5f5aead86541ffcd12e291b6dfb6811e5.tar.bz2
rneovim-f8f7f9d5f5aead86541ffcd12e291b6dfb6811e5.zip
vim-patch:8.0.0151,3,4 #7389
vim-patch:8.0.0151 Problem: To pass buffer content to system() and systemlist() one has to first create a string or list. Solution: Allow passing a buffer number. (LemonBoy, closes vim/vim#1240) https://github.com/vim/vim/commit/12c4492dd35e0cd83c8816be2ec849b836109882 vim-patch:8.0.0153 Problem: system() test fails on MS-Windows. Solution: Deal when extra space and CR. https://github.com/vim/vim/commit/9d9c35651712b88c81f1ae11091de1fd0bbbd35c vim-patch:8.0.0154 Problem: system() test fails on OS/X. Solution: Deal with leading spaces. https://github.com/vim/vim/commit/31f19ce0a052f7c76d44a9a190e468c79cf5d56d
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/eval.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt
index ae62498d35..7820b85bf4 100644
--- a/runtime/doc/eval.txt
+++ b/runtime/doc/eval.txt
@@ -7645,6 +7645,9 @@ system({cmd} [, {input}]) *system()* *E677*
|writefile()| does with {binary} set to "b" (i.e. with
a newline between each list item, and newlines inside list
items converted to NULs).
+ When {input} is given and is a valid buffer id, the content of
+ the buffer is written to the file line by line, each line
+ terminated by a NL (and NUL where the text has NL).
*E5677*
Note: system() cannot write to or read from backgrounded ("&")
shell commands, e.g.: >