aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api/vim.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-08-20 19:41:45 +0200
committerJustin M. Keyes <justinkz@gmail.com>2019-08-27 21:19:10 +0200
commit0221a9220a2ec0691a7139c8362aba80d1f3b8ee (patch)
treed0bcc1d5656776bc5a1974495d7e1a5e1016e382 /src/nvim/api/vim.c
parentd303790ee751916a00a45ee91ff1cf3ab82928c8 (diff)
downloadrneovim-0221a9220a2ec0691a7139c8362aba80d1f3b8ee.tar.gz
rneovim-0221a9220a2ec0691a7139c8362aba80d1f3b8ee.tar.bz2
rneovim-0221a9220a2ec0691a7139c8362aba80d1f3b8ee.zip
paste: edge-case: handle EOL at end-of-buffer
This is "readfile()-style", see also ":help channel-lines".
Diffstat (limited to 'src/nvim/api/vim.c')
-rw-r--r--src/nvim/api/vim.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/nvim/api/vim.c b/src/nvim/api/vim.c
index bafb21bd4e..9ba855b61f 100644
--- a/src/nvim/api/vim.c
+++ b/src/nvim/api/vim.c
@@ -1210,9 +1210,13 @@ Dictionary nvim_get_namespaces(void)
///
/// Compare |:put| and |p| which are always linewise.
///
-/// @param lines contents
-/// @param type type ("c", "l", "b") or empty to guess from contents
-/// @param direction behave like |P| instead of |p|
+/// @param lines |readfile()|-style list of lines. |channel-lines|
+/// @param type Edit behavior:
+/// - "b" |blockwise-visual| mode
+/// - "c" |characterwise| mode
+/// - "l" |linewise| mode
+/// - "" guess by contents
+/// @param direction Behave like |P| instead of |p|
/// @param[out] err Error details, if any
void nvim_put(ArrayOf(String) lines, String type, Boolean direction,
Error *err)