diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-08-30 09:15:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-30 09:15:43 +0200 |
commit | 06e693cdc9e6f960dfbc4594f0d80265589ce7c3 (patch) | |
tree | a134ef031cb0751692e71928d246a565403d9c87 /runtime/doc/api.txt | |
parent | 4b8a16153e79644a5df9f6dc94215ac009c26c33 (diff) | |
parent | f5fd699c527945d795dab9f3529333df6d0561d0 (diff) | |
download | rneovim-06e693cdc9e6f960dfbc4594f0d80265589ce7c3.tar.gz rneovim-06e693cdc9e6f960dfbc4594f0d80265589ce7c3.tar.bz2 rneovim-06e693cdc9e6f960dfbc4594f0d80265589ce7c3.zip |
Merge #10884 'API: nvim_paste: add `crlf` parameter'
Diffstat (limited to 'runtime/doc/api.txt')
-rw-r--r-- | runtime/doc/api.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/runtime/doc/api.txt b/runtime/doc/api.txt index 32d7f5eb1e..710ab0cf33 100644 --- a/runtime/doc/api.txt +++ b/runtime/doc/api.txt @@ -793,11 +793,12 @@ nvim_get_namespaces() *nvim_get_namespaces()* Return: ~ dict that maps from names to namespace ids. -nvim_paste({data}, {phase}) *nvim_paste()* +nvim_paste({data}, {crlf}, {phase}) *nvim_paste()* Pastes at cursor, in any mode. Invokes the `vim.paste` handler, which handles each mode appropriately. Sets redo/undo. Faster than |nvim_input()|. + Lines break at LF ("\n"). Errors ('nomodifiable', `vim.paste()` failure, …) are reflected in `err` but do not affect the return value (which @@ -808,6 +809,7 @@ nvim_paste({data}, {phase}) *nvim_paste()* Parameters: ~ {data} Multiline input. May be binary (containing NUL bytes). + {crlf} Also break lines at CR and CRLF. {phase} -1: paste in a single call (i.e. without streaming). To "stream" a paste, call `nvim_paste` sequentially with these `phase` values: • 1: starts the paste (exactly once) |