# HG changeset patch # User Christian Brabandt # Date 1485277206 -3600 # Node ID 75c324ab1270af6a587d550c5e867900dc19946b # Parent 016727751b958276dd4fa0bf95402dfa52e8b006 patch 8.0.0230: bracketed paste does not support line breaks commit https://github.com/vim/vim/commit/915350edec02f0326ecbe49f3b6cf2cbcd105f7d Author: Bram Moolenaar Date: Tue Jan 24 17:50:52 2017 +0100 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) diff --git a/src/edit.c b/src/edit.c --- a/src/edit.c +++ b/src/edit.c @@ -9498,7 +9498,11 @@ bracketed_paste(paste_mode_T mode, int d case PASTE_INSERT: 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); } break; diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -765,6 +765,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 230, +/**/ 229, /**/ 228,