summaryrefslogtreecommitdiff
path: root/source/ap/vim/patches/7.3.048
blob: db84480f1216a55a8772631fbe61ef2368aca1b9 (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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
To: vim_dev@googlegroups.com
Subject: Patch 7.3.048
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.048
Problem:    ":earlier 1f" doesn't work after loading undo file.
Solution:   Set b_u_save_nr_cur when loading an undo file. (Christian
	    Brabandt)
	    Fix only showing time in ":undolist"
Files:	    src/undo.c


*** ../vim-7.3.047/src/undo.c	2010-08-15 21:57:28.000000000 +0200
--- src/undo.c	2010-11-03 19:26:38.000000000 +0100
***************
*** 1861,1866 ****
--- 1861,1867 ----
      curbuf->b_u_seq_cur = seq_cur;
      curbuf->b_u_time_cur = seq_time;
      curbuf->b_u_save_nr_last = last_save_nr;
+     curbuf->b_u_save_nr_cur = last_save_nr;
  
      curbuf->b_u_synced = TRUE;
      vim_free(uhp_table);
***************
*** 2794,2800 ****
  								uhp->uh_time);
  	    if (uhp->uh_save_nr > 0)
  	    {
! 		while (STRLEN(IObuff) < 32)
  		    STRCAT(IObuff, " ");
  		vim_snprintf_add((char *)IObuff, IOSIZE,
  						   "  %3ld", uhp->uh_save_nr);
--- 2795,2801 ----
  								uhp->uh_time);
  	    if (uhp->uh_save_nr > 0)
  	    {
! 		while (STRLEN(IObuff) < 33)
  		    STRCAT(IObuff, " ");
  		vim_snprintf_add((char *)IObuff, IOSIZE,
  						   "  %3ld", uhp->uh_save_nr);
***************
*** 2849,2855 ****
  	sort_strings((char_u **)ga.ga_data, ga.ga_len);
  
  	msg_start();
! 	msg_puts_attr((char_u *)_("number changes  time            saved"),
  							      hl_attr(HLF_T));
  	for (i = 0; i < ga.ga_len && !got_int; ++i)
  	{
--- 2850,2856 ----
  	sort_strings((char_u **)ga.ga_data, ga.ga_len);
  
  	msg_start();
! 	msg_puts_attr((char_u *)_("number changes  when               saved"),
  							      hl_attr(HLF_T));
  	for (i = 0; i < ga.ga_len && !got_int; ++i)
  	{
***************
*** 2879,2885 ****
      if (time(NULL) - tt >= 100)
      {
  	curtime = localtime(&tt);
! 	(void)strftime((char *)buf, buflen, "%H:%M:%S", curtime);
      }
      else
  #endif
--- 2880,2894 ----
      if (time(NULL) - tt >= 100)
      {
  	curtime = localtime(&tt);
! 	if (time(NULL) - tt < (60L * 60L * 12L))
! 	    /* within 12 hours */
! 	    (void)strftime((char *)buf, buflen, "%H:%M:%S", curtime);
! 	else if (time(NULL) - tt < (60L * 60L * 24L * 180L))
! 	    /* within 6 months */
! 	    (void)strftime((char *)buf, buflen, "%m/%d %H:%M:%S", curtime);
! 	else
! 	    /* long ago */
! 	    (void)strftime((char *)buf, buflen, "%y/%m/%d %H:%M:%S", curtime);
      }
      else
  #endif
*** ../vim-7.3.047/src/version.c	2010-10-27 18:36:32.000000000 +0200
--- src/version.c	2010-11-03 19:27:07.000000000 +0100
***************
*** 716,717 ****
--- 716,719 ----
  {   /* Add new patch number below this line */
+ /**/
+     48,
  /**/

-- 
TIM: To the north there lies a cave,  the cave of Caerbannog, wherein, carved
     in mystic runes, upon the very living rock, the last words of Olfin
     Bedwere of Rheged make plain the last resting place of the most Holy
     Grail.
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///