From ba6e85855634a16481e0fe7dd7ba9adf2ede201a Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 12 Dec 2012 18:20:32 +0100 Subject: [PATCH] updated for version 7.3.761 Problem: In Visual mode a "-p does not work. (Marcin Szamotulski) Solution: Avoid writing to "- before putting it. (Christian Brabandt) --- src/normal.c | 5 +++-- src/testdir/test48.in | 4 ++++ src/testdir/test48.ok | 1 + src/version.c | 2 ++ 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/normal.c b/src/normal.c index 869ada37a..4d0bbdbea 100644 --- a/src/normal.c +++ b/src/normal.c @@ -9412,14 +9412,15 @@ nv_put(cap) # ifdef FEAT_CLIPBOARD adjust_clip_reg(®name); # endif - if (regname == 0 || regname == '"' || VIM_ISDIGIT(regname) + if (regname == 0 || regname == '"' + || VIM_ISDIGIT(regname) || regname == '-' # ifdef FEAT_CLIPBOARD || (clip_unnamed && (regname == '*' || regname == '+')) # endif ) { - /* the delete is going to overwrite the register we want to + /* The delete is going to overwrite the register we want to * put, save it first. */ reg1 = get_register(regname, TRUE); } diff --git a/src/testdir/test48.in b/src/testdir/test48.in index 2179fe664..48f4abbf7 100644 --- a/src/testdir/test48.in +++ b/src/testdir/test48.in @@ -54,8 +54,12 @@ $5lrxa<-- should be 'x' ^O3li4li4li <-- should show the name of a noted text editor ^o4li4li4li <-- and its version number-dd :" +:" Test for yanking and pasting using the small delete register +gg/^foo +dewve"-p :wq! test.out ENDTEST +foo, bar keyword keyw all your base are belong to us 1 2 3 4 5 6 diff --git a/src/testdir/test48.ok b/src/testdir/test48.ok index 4fcbe5086..334cb5a29 100644 --- a/src/testdir/test48.ok +++ b/src/testdir/test48.ok @@ -1,3 +1,4 @@ +, foo keyword keyword all your base are belong to vim diff --git a/src/version.c b/src/version.c index 3f889b6ab..5e7b39706 100644 --- a/src/version.c +++ b/src/version.c @@ -725,6 +725,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 761, /**/ 760, /**/ -- 2.50.1