diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-08-29 23:45:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-29 23:45:02 +0200 |
commit | 9f81acc076779f891160423657cc35e6ac37c3e6 (patch) | |
tree | 025dff4b1cfa364061b88d24ec5152725132453c /runtime | |
parent | 00d46f63286461eec4d7b2d7cae15fbe0d9cabdb (diff) | |
download | rneovim-9f81acc076779f891160423657cc35e6ac37c3e6.tar.gz rneovim-9f81acc076779f891160423657cc35e6ac37c3e6.tar.bz2 rneovim-9f81acc076779f891160423657cc35e6ac37c3e6.zip |
paste: break lines at CR, CRLF #10877
Some terminals helpfully translate \n to \r.
fix #10872
ref #10223
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/provider.txt | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/runtime/doc/provider.txt b/runtime/doc/provider.txt index 833be8a103..0083bb63a4 100644 --- a/runtime/doc/provider.txt +++ b/runtime/doc/provider.txt @@ -239,13 +239,14 @@ GUIs can paste by calling |nvim_paste()|. PASTE BEHAVIOR ~ -Paste always inserts text after the cursor. In cmdline-mode only the first -line is pasted, to avoid accidentally executing many commands. Use the -|cmdline-window| if you really want to paste multiple lines to the cmdline. - -When pasting a huge amount of text, screen updates are throttled and the +Paste inserts text after the cursor. Lines break at <NL>, <CR>, and <CR><NL>. +When pasting a huge amount of text, screen-updates are throttled and the message area shows a "..." pulse. +In cmdline-mode only the first line is pasted, to avoid accidentally executing +many commands. Use the |cmdline-window| if you really want to paste multiple +lines to the cmdline. + You can implement a custom paste handler by redefining |vim.paste()|. Example: > |