mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
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)
This commit is contained in:
@@ -9412,14 +9412,15 @@ nv_put(cap)
|
|||||||
# ifdef FEAT_CLIPBOARD
|
# ifdef FEAT_CLIPBOARD
|
||||||
adjust_clip_reg(®name);
|
adjust_clip_reg(®name);
|
||||||
# endif
|
# endif
|
||||||
if (regname == 0 || regname == '"' || VIM_ISDIGIT(regname)
|
if (regname == 0 || regname == '"'
|
||||||
|
|| VIM_ISDIGIT(regname) || regname == '-'
|
||||||
# ifdef FEAT_CLIPBOARD
|
# ifdef FEAT_CLIPBOARD
|
||||||
|| (clip_unnamed && (regname == '*' || regname == '+'))
|
|| (clip_unnamed && (regname == '*' || regname == '+'))
|
||||||
# endif
|
# 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. */
|
* put, save it first. */
|
||||||
reg1 = get_register(regname, TRUE);
|
reg1 = get_register(regname, TRUE);
|
||||||
}
|
}
|
||||||
|
@@ -54,8 +54,12 @@ $5lrxa<-- should be 'x'
|
|||||||
:" Roy <royl@netropolis.net>.
|
:" Roy <royl@netropolis.net>.
|
||||||
^O3li4li4li <-- should show the name of a noted text editor
|
^O3li4li4li <-- should show the name of a noted text editor
|
||||||
^o4li4li4li <-- and its version number-dd
|
^o4li4li4li <-- and its version number-dd
|
||||||
|
:"
|
||||||
|
:" Test for yanking and pasting using the small delete register
|
||||||
|
gg/^foo
|
||||||
dewve"-p
|
dewve"-p
|
||||||
:wq! test.out
|
:wq! test.out
|
||||||
|
ENDTEST
|
||||||
foo, bar
|
foo, bar
|
||||||
keyword keyw
|
keyword keyw
|
||||||
all your base are belong to us
|
all your base are belong to us
|
||||||
|
@@ -1,3 +1,4 @@
|
|||||||
|
, foo
|
||||||
keyword keyword
|
keyword keyword
|
||||||
all your base
|
all your base
|
||||||
are belong to vim
|
are belong to vim
|
||||||
|
@@ -725,6 +725,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 */
|
||||||
|
/**/
|
||||||
|
761,
|
||||||
/**/
|
/**/
|
||||||
760,
|
760,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user