aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api/vim.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-08-31 12:44:42 +0200
committerJustin M. Keyes <justinkz@gmail.com>2019-09-02 02:27:13 +0200
commit976c6667e140fe4dfe2731451b25c4a1309ad165 (patch)
treecd472c2334bcffcc83861d1ebbc878ea9efccdb7 /src/nvim/api/vim.c
parent801fe799ff359cdae66ed14f5e0b7c2c4cec9536 (diff)
downloadrneovim-976c6667e140fe4dfe2731451b25c4a1309ad165.tar.gz
rneovim-976c6667e140fe4dfe2731451b25c4a1309ad165.tar.bz2
rneovim-976c6667e140fe4dfe2731451b25c4a1309ad165.zip
paste: one undo-block per stream
- All "chunks" in a paste-stream should form a single undo-block. Side effect of 7a8579288424 was to create an undo-block for each chunk. - Also: remove old :redraw force logic, irrelevant after 7a8579288424.
Diffstat (limited to 'src/nvim/api/vim.c')
-rw-r--r--src/nvim/api/vim.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/api/vim.c b/src/nvim/api/vim.c
index 21cba96ba7..2034fea770 100644
--- a/src/nvim/api/vim.c
+++ b/src/nvim/api/vim.c
@@ -1293,11 +1293,11 @@ theend:
/// Compare |:put| and |p| which are always linewise.
///
/// @param lines |readfile()|-style list of lines. |channel-lines|
-/// @param type Edit behavior:
-/// - "b" |blockwise-visual| mode
+/// @param type Edit behavior: any |getregtype()| result, or:
+/// - "b" |blockwise-visual| mode (may include width, e.g. "b3")
/// - "c" |characterwise| mode
/// - "l" |linewise| mode
-/// - "" guess by contents
+/// - "" guess by contents, see |setreg()|
/// @param after Insert after cursor (like |p|), or before (like |P|).
/// @param follow Place cursor at end of inserted text.
/// @param[out] err Error details, if any