summaryrefslogtreecommitdiff
path: root/source/ap/vim/patches/7.3.508
blob: 7b8e7b261a89fbba3ae1ecab34659d76d9099d66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
To: vim_dev@googlegroups.com
Subject: Patch 7.3.508
Fcc: outbox
From: Bram Moolenaar <Bram@moolenaar.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
------------

Patch 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)
Files:	    src/eval.c, src/main.c


*** ../vim-7.3.507/src/eval.c	2012-04-25 16:50:44.000000000 +0200
--- src/eval.c	2012-04-25 17:56:41.000000000 +0200
***************
*** 880,885 ****
--- 880,886 ----
  	    hash_add(&compat_hashtab, p->vv_di.di_key);
      }
      set_vim_var_nr(VV_SEARCHFORWARD, 1L);
+     set_reg_var(0);  /* default for v:register is not 0 but '"' */
  
  #ifdef EBCDIC
      /*
*** ../vim-7.3.507/src/main.c	2012-03-28 17:10:26.000000000 +0200
--- src/main.c	2012-04-25 18:01:28.000000000 +0200
***************
*** 928,933 ****
--- 928,945 ----
      TIME_MSG("VimEnter autocommands");
  #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)
      /* When a startup script or session file setup for diff'ing and
       * scrollbind, sync the scrollbind now. */
***************
*** 1357,1363 ****
  		{
  		    apply_autocmds(EVENT_BUFWINLEAVE, buf->b_fname,
  						    buf->b_fname, FALSE, buf);
! 		    buf->b_changedtick = -1;    /* note that we did it already */
  		    /* start all over, autocommands may mess up the lists */
  		    next_tp = first_tabpage;
  		    break;
--- 1369,1375 ----
  		{
  		    apply_autocmds(EVENT_BUFWINLEAVE, buf->b_fname,
  						    buf->b_fname, FALSE, buf);
! 		    buf->b_changedtick = -1;  /* note that we did it already */
  		    /* start all over, autocommands may mess up the lists */
  		    next_tp = first_tabpage;
  		    break;
*** ../vim-7.3.507/src/version.c	2012-04-25 17:32:14.000000000 +0200
--- src/version.c	2012-04-25 18:00:28.000000000 +0200
***************
*** 716,717 ****
--- 716,719 ----
  {   /* Add new patch number below this line */
+ /**/
+     508,
  /**/

-- 
I wonder, do vegetarians eat fruit bats?

 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///