Bram Moolenaar wrote:

> Dominique Pelle wrote:
>
>> Hopefully this is not too nitpicky: using Vim-7.3.87 and typing :undol
>> I see this kind of output:
>>
>> :undol
>> number changes  when               saved
>>      3       3  10/30 20:28:39
>>      5       4  10/30 20:28:43
>>     24      22  12/17 18:42:02       6
>>
>> Output example in ":help undol" looks different:
>> - 3rd column says "time" instead of "when"
>> - alignment is also different.
>>
>> "time" was changed to "when" in patch 7.3.048 but help file was
>> not updated accordingly.  Attached patch updates help file.
>
> Thanks.  I think we also need to explain the date format.  How about
> this:
>
>                        The "when" column is the date and time when this
>                        change was made.  The four possible formats are:
>                            N seconds ago
>                            HH:MM:SS             hour, minute, seconds
>                            MM/DD HH:MM:SS       idem, with month and day
>                            YYYY/MM/DD HH:MM:SS  idem, with year
>
> And to reflect that in the example:
>
>                           number changes  when               saved ~
>                               88      88  2010/01/04 14:25:53
>                              108     107  08/07 12:47:51
>                              136      46  13:33:01             7
>                              166     164  3 seconds ago
>
> First one to actually get the year to show up gets a lolly :-).

That's better indeed.

One correction though: in source vim/src/undo.c:2887, I see
that the format when file is older than ~6 months is:
  "%y/%m/%d %H:%M:%S".

According to "man strftime", %y is the year _without_ the
century (i.e. range 00 to 99). So help file should say
YY/MM/DD HH:MM:SS rather than YYYY/MM/DD HH:MM:SS.

Or perhaps it's better to use format %Y rather than %y in
undo.c:2887 to show a 4 digits date. Who knows, someone
might thank you for that in 100 years.

-- Dominique

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui