mirror of
https://github.com/vim/vim.git
synced 2025-07-24 10:45:12 -04:00
patch 8.1.0308: a quick undo shows "1 seconds ago"
Problem: A quick undo shows "1 seconds ago". (Tony Mechelynck) Solution: Add singular/plural message.
This commit is contained in:
parent
0f6b4f06de
commit
fd6100b2aa
@ -3124,8 +3124,13 @@ u_add_time(char_u *buf, size_t buflen, time_t tt)
|
||||
}
|
||||
else
|
||||
#endif
|
||||
vim_snprintf((char *)buf, buflen, _("%ld seconds ago"),
|
||||
(long)(vim_time() - tt));
|
||||
{
|
||||
long seconds = (long)(vim_time() - tt);
|
||||
|
||||
vim_snprintf((char *)buf, buflen,
|
||||
NGETTEXT("%ld second ago", "%ld seconds ago", seconds),
|
||||
seconds);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -794,6 +794,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
308,
|
||||
/**/
|
||||
307,
|
||||
/**/
|
||||
|
Loading…
x
Reference in New Issue
Block a user