summaryrefslogtreecommitdiff
path: root/data/vim/patches/8.1.0308
blob: 34230ea6521f0b983968f72ba1a98b24037f9314 (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
To: vim_dev@googlegroups.com
Subject: Patch 8.1.0308
Fcc: outbox
From: Bram Moolenaar <Bram@moolenaar.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
------------

Patch 8.1.0308
Problem:    A quick undo shows "1 seconds ago". (Tony Mechelynck)
Solution:   Add singular/plural message.
Files:	    src/undo.c


*** ../vim-8.1.0307/src/undo.c	2018-07-13 16:31:11.952226727 +0200
--- src/undo.c	2018-08-21 17:05:23.300046260 +0200
***************
*** 3124,3131 ****
      }
      else
  #endif
! 	vim_snprintf((char *)buf, buflen, _("%ld seconds ago"),
! 						      (long)(vim_time() - tt));
  }
  
  /*
--- 3124,3136 ----
      }
      else
  #endif
!     {
! 	long seconds = (long)(vim_time() - tt);
! 
! 	vim_snprintf((char *)buf, buflen,
! 		NGETTEXT("%ld second ago", "%ld seconds ago", seconds),
! 		seconds);
!     }
  }
  
  /*
*** ../vim-8.1.0307/src/version.c	2018-08-21 16:56:28.371325254 +0200
--- src/version.c	2018-08-21 17:06:12.627737719 +0200
***************
*** 796,797 ****
--- 796,799 ----
  {   /* Add new patch number below this line */
+ /**/
+     308,
  /**/

-- 
ARTHUR: I've said I'm sorry about the old woman, but from the behind you
        looked ...
DENNIS: What I object to is that you automatically treat me like an inferior...
ARTHUR: Well ... I AM king.
                 "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/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///