mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 8.0.0230: bracketed paste does not support line breaks
Problem: When using bracketed paste line breaks are not respected. Solution: Turn CR characters into a line break if the text is being inserted. (closes #1404)
This commit is contained in:
@@ -9498,7 +9498,11 @@ bracketed_paste(paste_mode_T mode, int drop, garray_T *gap)
|
|||||||
case PASTE_INSERT:
|
case PASTE_INSERT:
|
||||||
if (stop_arrow() == OK)
|
if (stop_arrow() == OK)
|
||||||
{
|
{
|
||||||
ins_char_bytes(buf, idx);
|
c = buf[0];
|
||||||
|
if (idx == 1 && (c == CAR || c == K_KENTER || c == NL))
|
||||||
|
ins_eol(c);
|
||||||
|
else
|
||||||
|
ins_char_bytes(buf, idx);
|
||||||
AppendToRedobuffLit(buf, idx);
|
AppendToRedobuffLit(buf, idx);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@@ -764,6 +764,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
230,
|
||||||
/**/
|
/**/
|
||||||
229,
|
229,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user