paste: edge-case: handle EOL at end-of-buffer

This is "readfile()-style", see also ":help channel-lines".
This commit is contained in:
Justin M. Keyes
2019-08-20 19:41:45 +02:00
parent d303790ee7
commit 0221a9220a
4 changed files with 22 additions and 23 deletions

View File

@@ -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)