|
Karsten Hopp |
e2dea8 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
e2dea8 |
Subject: Patch 7.3.508
|
|
Karsten Hopp |
e2dea8 |
Fcc: outbox
|
|
Karsten Hopp |
e2dea8 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
e2dea8 |
Mime-Version: 1.0
|
|
Karsten Hopp |
e2dea8 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
e2dea8 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
e2dea8 |
------------
|
|
Karsten Hopp |
e2dea8 |
|
|
Karsten Hopp |
e2dea8 |
Patch 7.3.508
|
|
Karsten Hopp |
e2dea8 |
Problem: Default for v:register is not set.
|
|
Karsten Hopp |
e2dea8 |
Solution: Init v:register in eval_init(). Correct for 'clipboard' before the
|
|
Karsten Hopp |
e2dea8 |
main loop. (Ingo Karkat)
|
|
Karsten Hopp |
e2dea8 |
Files: src/eval.c, src/main.c
|
|
Karsten Hopp |
e2dea8 |
|
|
Karsten Hopp |
e2dea8 |
|
|
Karsten Hopp |
e2dea8 |
*** ../vim-7.3.507/src/eval.c 2012-04-25 16:50:44.000000000 +0200
|
|
Karsten Hopp |
e2dea8 |
--- src/eval.c 2012-04-25 17:56:41.000000000 +0200
|
|
Karsten Hopp |
e2dea8 |
***************
|
|
Karsten Hopp |
e2dea8 |
*** 880,885 ****
|
|
Karsten Hopp |
e2dea8 |
--- 880,886 ----
|
|
Karsten Hopp |
e2dea8 |
hash_add(&compat_hashtab, p->vv_di.di_key);
|
|
Karsten Hopp |
e2dea8 |
}
|
|
Karsten Hopp |
e2dea8 |
set_vim_var_nr(VV_SEARCHFORWARD, 1L);
|
|
Karsten Hopp |
e2dea8 |
+ set_reg_var(0); /* default for v:register is not 0 but '"' */
|
|
Karsten Hopp |
e2dea8 |
|
|
Karsten Hopp |
e2dea8 |
#ifdef EBCDIC
|
|
Karsten Hopp |
e2dea8 |
/*
|
|
Karsten Hopp |
e2dea8 |
*** ../vim-7.3.507/src/main.c 2012-03-28 17:10:26.000000000 +0200
|
|
Karsten Hopp |
e2dea8 |
--- src/main.c 2012-04-25 18:01:28.000000000 +0200
|
|
Karsten Hopp |
e2dea8 |
***************
|
|
Karsten Hopp |
e2dea8 |
*** 928,933 ****
|
|
Karsten Hopp |
e2dea8 |
--- 928,945 ----
|
|
Karsten Hopp |
e2dea8 |
TIME_MSG("VimEnter autocommands");
|
|
Karsten Hopp |
e2dea8 |
#endif
|
|
Karsten Hopp |
e2dea8 |
|
|
Karsten Hopp |
e2dea8 |
+ #if defined(FEAT_EVAL) && defined(FEAT_CLIPBOARD)
|
|
Karsten Hopp |
e2dea8 |
+ /* Adjust default register name for "unnamed" in 'clipboard'. Can only be
|
|
Karsten Hopp |
e2dea8 |
+ * done after the clipboard is available and all initial commands that may
|
|
Karsten Hopp |
e2dea8 |
+ * modify the 'clipboard' setting have run; i.e. just before entering the
|
|
Karsten Hopp |
e2dea8 |
+ * main loop. */
|
|
Karsten Hopp |
e2dea8 |
+ {
|
|
Karsten Hopp |
e2dea8 |
+ int default_regname = 0;
|
|
Karsten Hopp |
e2dea8 |
+ adjust_clip_reg(&default_regname);
|
|
Karsten Hopp |
e2dea8 |
+ set_reg_var(default_regname);
|
|
Karsten Hopp |
e2dea8 |
+ }
|
|
Karsten Hopp |
e2dea8 |
+ #endif
|
|
Karsten Hopp |
e2dea8 |
+
|
|
Karsten Hopp |
e2dea8 |
#if defined(FEAT_DIFF) && defined(FEAT_SCROLLBIND)
|
|
Karsten Hopp |
e2dea8 |
/* When a startup script or session file setup for diff'ing and
|
|
Karsten Hopp |
e2dea8 |
* scrollbind, sync the scrollbind now. */
|
|
Karsten Hopp |
e2dea8 |
***************
|
|
Karsten Hopp |
e2dea8 |
*** 1357,1363 ****
|
|
Karsten Hopp |
e2dea8 |
{
|
|
Karsten Hopp |
e2dea8 |
apply_autocmds(EVENT_BUFWINLEAVE, buf->b_fname,
|
|
Karsten Hopp |
e2dea8 |
buf->b_fname, FALSE, buf);
|
|
Karsten Hopp |
e2dea8 |
! buf->b_changedtick = -1; /* note that we did it already */
|
|
Karsten Hopp |
e2dea8 |
/* start all over, autocommands may mess up the lists */
|
|
Karsten Hopp |
e2dea8 |
next_tp = first_tabpage;
|
|
Karsten Hopp |
e2dea8 |
break;
|
|
Karsten Hopp |
e2dea8 |
--- 1369,1375 ----
|
|
Karsten Hopp |
e2dea8 |
{
|
|
Karsten Hopp |
e2dea8 |
apply_autocmds(EVENT_BUFWINLEAVE, buf->b_fname,
|
|
Karsten Hopp |
e2dea8 |
buf->b_fname, FALSE, buf);
|
|
Karsten Hopp |
e2dea8 |
! buf->b_changedtick = -1; /* note that we did it already */
|
|
Karsten Hopp |
e2dea8 |
/* start all over, autocommands may mess up the lists */
|
|
Karsten Hopp |
e2dea8 |
next_tp = first_tabpage;
|
|
Karsten Hopp |
e2dea8 |
break;
|
|
Karsten Hopp |
e2dea8 |
*** ../vim-7.3.507/src/version.c 2012-04-25 17:32:14.000000000 +0200
|
|
Karsten Hopp |
e2dea8 |
--- src/version.c 2012-04-25 18:00:28.000000000 +0200
|
|
Karsten Hopp |
e2dea8 |
***************
|
|
Karsten Hopp |
e2dea8 |
*** 716,717 ****
|
|
Karsten Hopp |
e2dea8 |
--- 716,719 ----
|
|
Karsten Hopp |
e2dea8 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
e2dea8 |
+ /**/
|
|
Karsten Hopp |
e2dea8 |
+ 508,
|
|
Karsten Hopp |
e2dea8 |
/**/
|
|
Karsten Hopp |
e2dea8 |
|
|
Karsten Hopp |
e2dea8 |
--
|
|
Karsten Hopp |
e2dea8 |
I wonder, do vegetarians eat fruit bats?
|
|
Karsten Hopp |
e2dea8 |
|
|
Karsten Hopp |
e2dea8 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
e2dea8 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
e2dea8 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
e2dea8 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|