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: ":earlier 1f" doesn't work after loading undo file.
12 Solution: Set b_u_save_nr_cur when loading an undo file. (Christian
14 Fix only showing time in ":undolist"
18 *** ../vim-7.3.047/src/undo.c 2010-08-15 21:57:28.000000000 +0200
19 --- src/undo.c 2010-11-03 19:26:38.000000000 +0100
23 curbuf->b_u_seq_cur = seq_cur;
24 curbuf->b_u_time_cur = seq_time;
25 curbuf->b_u_save_nr_last = last_save_nr;
26 + curbuf->b_u_save_nr_cur = last_save_nr;
28 curbuf->b_u_synced = TRUE;
33 if (uhp->uh_save_nr > 0)
35 ! while (STRLEN(IObuff) < 32)
37 vim_snprintf_add((char *)IObuff, IOSIZE,
38 " %3ld", uhp->uh_save_nr);
41 if (uhp->uh_save_nr > 0)
43 ! while (STRLEN(IObuff) < 33)
45 vim_snprintf_add((char *)IObuff, IOSIZE,
46 " %3ld", uhp->uh_save_nr);
49 sort_strings((char_u **)ga.ga_data, ga.ga_len);
52 ! msg_puts_attr((char_u *)_("number changes time saved"),
54 for (i = 0; i < ga.ga_len && !got_int; ++i)
57 sort_strings((char_u **)ga.ga_data, ga.ga_len);
60 ! msg_puts_attr((char_u *)_("number changes when saved"),
62 for (i = 0; i < ga.ga_len && !got_int; ++i)
66 if (time(NULL) - tt >= 100)
68 curtime = localtime(&tt);
69 ! (void)strftime((char *)buf, buflen, "%H:%M:%S", curtime);
74 if (time(NULL) - tt >= 100)
76 curtime = localtime(&tt);
77 ! if (time(NULL) - tt < (60L * 60L * 12L))
78 ! /* within 12 hours */
79 ! (void)strftime((char *)buf, buflen, "%H:%M:%S", curtime);
80 ! else if (time(NULL) - tt < (60L * 60L * 24L * 180L))
81 ! /* within 6 months */
82 ! (void)strftime((char *)buf, buflen, "%m/%d %H:%M:%S", curtime);
85 ! (void)strftime((char *)buf, buflen, "%y/%m/%d %H:%M:%S", curtime);
89 *** ../vim-7.3.047/src/version.c 2010-10-27 18:36:32.000000000 +0200
90 --- src/version.c 2010-11-03 19:27:07.000000000 +0100
94 { /* Add new patch number below this line */
100 TIM: To the north there lies a cave, the cave of Caerbannog, wherein, carved
101 in mystic runes, upon the very living rock, the last words of Olfin
102 Bedwere of Rheged make plain the last resting place of the most Holy
104 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
106 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
107 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
108 \\\ download, build and distribute -- http://www.A-A-P.org ///
109 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///