diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-08-21 17:07:45 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-08-21 17:07:45 +0200 |
commit | fd6100b2aa6178b88cfadcdbc494966bf79a5488 (patch) | |
tree | 84eaf9a9ce4115b073c81c184d8d4694bfe0a1e5 /src | |
parent | 0f6b4f06dece71487a6d8546c50de775d9c8c287 (diff) |
patch 8.1.0308: a quick undo shows "1 seconds ago"v8.1.0308
Problem: A quick undo shows "1 seconds ago". (Tony Mechelynck)
Solution: Add singular/plural message.
Diffstat (limited to 'src')
-rw-r--r-- | src/undo.c | 9 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 9 insertions, 2 deletions
diff --git a/src/undo.c b/src/undo.c index 040ec54809..ebf18da499 100644 --- a/src/undo.c +++ b/src/undo.c @@ -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); + } } /* diff --git a/src/version.c b/src/version.c index bad2b33242..51ead8f5d8 100644 --- a/src/version.c +++ b/src/version.c @@ -795,6 +795,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 308, +/**/ 307, /**/ 306, |