Skip to content
Permalink
Browse files

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)
  • Loading branch information...
brammool committed Jan 24, 2017
1 parent 24a2d41 commit 915350edec02f0326ecbe49f3b6cf2cbcd105f7d
Showing with 7 additions and 1 deletion.
  1. +5 −1 src/edit.c
  2. +2 −0 src/version.c
@@ -9498,7 +9498,11 @@ bracketed_paste(paste_mode_T mode, int drop, garray_T *gap)
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;
@@ -764,6 +764,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
230,
/**/
229,
/**/

0 comments on commit 915350e

Please sign in to comment.
You can’t perform that action at this time.