]> git.ipfire.org Git - ipfire-3.x.git/blob - vim/patches/vim-7.3.508.patch0
python3: Update to 3.6.3
[ipfire-3.x.git] / vim / patches / vim-7.3.508.patch0
1 To: vim_dev@googlegroups.com
2 Subject: Patch 7.3.508
3 Fcc: outbox
4 From: Bram Moolenaar <Bram@moolenaar.net>
5 Mime-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8 ------------
9
10 Patch 7.3.508
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
15
16
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
19 ***************
20 *** 880,885 ****
21 --- 880,886 ----
22 hash_add(&compat_hashtab, p->vv_di.di_key);
23 }
24 set_vim_var_nr(VV_SEARCHFORWARD, 1L);
25 + set_reg_var(0); /* default for v:register is not 0 but '"' */
26
27 #ifdef EBCDIC
28 /*
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
31 ***************
32 *** 928,933 ****
33 --- 928,945 ----
34 TIME_MSG("VimEnter autocommands");
35 #endif
36
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
41 + * main loop. */
42 + {
43 + int default_regname = 0;
44 + adjust_clip_reg(&default_regname);
45 + set_reg_var(default_regname);
46 + }
47 + #endif
48 +
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. */
52 ***************
53 *** 1357,1363 ****
54 {
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;
60 break;
61 --- 1369,1375 ----
62 {
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;
68 break;
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
71 ***************
72 *** 716,717 ****
73 --- 716,719 ----
74 { /* Add new patch number below this line */
75 + /**/
76 + 508,
77 /**/
78
79 --
80 I wonder, do vegetarians eat fruit bats?
81
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 ///