mirror of
https://github.com/vim/vim.git
synced 2025-09-27 04:14:06 -04:00
updated for version 7.3.508
Problem: Default for v:register is not set. Solution: Init v:register in eval_init(). Correct for 'clipboard' before the main loop. (Ingo Karkat)
This commit is contained in:
@@ -880,6 +880,7 @@ eval_init()
|
|||||||
hash_add(&compat_hashtab, p->vv_di.di_key);
|
hash_add(&compat_hashtab, p->vv_di.di_key);
|
||||||
}
|
}
|
||||||
set_vim_var_nr(VV_SEARCHFORWARD, 1L);
|
set_vim_var_nr(VV_SEARCHFORWARD, 1L);
|
||||||
|
set_reg_var(0); /* default for v:register is not 0 but '"' */
|
||||||
|
|
||||||
#ifdef EBCDIC
|
#ifdef EBCDIC
|
||||||
/*
|
/*
|
||||||
|
12
src/main.c
12
src/main.c
@@ -928,6 +928,18 @@ int vim_main2(int argc, char **argv)
|
|||||||
TIME_MSG("VimEnter autocommands");
|
TIME_MSG("VimEnter autocommands");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(FEAT_EVAL) && defined(FEAT_CLIPBOARD)
|
||||||
|
/* Adjust default register name for "unnamed" in 'clipboard'. Can only be
|
||||||
|
* done after the clipboard is available and all initial commands that may
|
||||||
|
* modify the 'clipboard' setting have run; i.e. just before entering the
|
||||||
|
* main loop. */
|
||||||
|
{
|
||||||
|
int default_regname = 0;
|
||||||
|
adjust_clip_reg(&default_regname);
|
||||||
|
set_reg_var(default_regname);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(FEAT_DIFF) && defined(FEAT_SCROLLBIND)
|
#if defined(FEAT_DIFF) && defined(FEAT_SCROLLBIND)
|
||||||
/* When a startup script or session file setup for diff'ing and
|
/* When a startup script or session file setup for diff'ing and
|
||||||
* scrollbind, sync the scrollbind now. */
|
* scrollbind, sync the scrollbind now. */
|
||||||
|
@@ -714,6 +714,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 */
|
||||||
|
/**/
|
||||||
|
508,
|
||||||
/**/
|
/**/
|
||||||
507,
|
507,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user