1 To: vim_dev@googlegroups.com
4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
11 Problem: Default for v:register is not set.
12 Solution: Init v:register in eval_init(). Correct for 'clipboard' before the
13 main loop. (Ingo Karkat)
14 Files: src/eval.c, src/main.c
17 *** ../vim-7.3.507/src/eval.c 2012-04-25 16:50:44.000000000 +0200
18 --- src/eval.c 2012-04-25 17:56:41.000000000 +0200
22 hash_add(&compat_hashtab, p->vv_di.di_key);
24 set_vim_var_nr(VV_SEARCHFORWARD, 1L);
25 + set_reg_var(0); /* default for v:register is not 0 but '"' */
29 *** ../vim-7.3.507/src/main.c 2012-03-28 17:10:26.000000000 +0200
30 --- src/main.c 2012-04-25 18:01:28.000000000 +0200
34 TIME_MSG("VimEnter autocommands");
37 + #if defined(FEAT_EVAL) && defined(FEAT_CLIPBOARD)
38 + /* Adjust default register name for "unnamed" in 'clipboard'. Can only be
39 + * done after the clipboard is available and all initial commands that may
40 + * modify the 'clipboard' setting have run; i.e. just before entering the
43 + int default_regname = 0;
44 + adjust_clip_reg(&default_regname);
45 + set_reg_var(default_regname);
49 #if defined(FEAT_DIFF) && defined(FEAT_SCROLLBIND)
50 /* When a startup script or session file setup for diff'ing and
51 * scrollbind, sync the scrollbind now. */
55 apply_autocmds(EVENT_BUFWINLEAVE, buf->b_fname,
56 buf->b_fname, FALSE, buf);
57 ! buf->b_changedtick = -1; /* note that we did it already */
58 /* start all over, autocommands may mess up the lists */
59 next_tp = first_tabpage;
63 apply_autocmds(EVENT_BUFWINLEAVE, buf->b_fname,
64 buf->b_fname, FALSE, buf);
65 ! buf->b_changedtick = -1; /* note that we did it already */
66 /* start all over, autocommands may mess up the lists */
67 next_tp = first_tabpage;
69 *** ../vim-7.3.507/src/version.c 2012-04-25 17:32:14.000000000 +0200
70 --- src/version.c 2012-04-25 18:00:28.000000000 +0200
74 { /* Add new patch number below this line */
80 I wonder, do vegetarians eat fruit bats?
82 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
83 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
84 \\\ an exciting new programming language -- http://www.Zimbu.org ///
85 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///