# HG changeset patch # User Christian Brabandt # Date 1534864506 -7200 # Node ID 9c9ee53868b9692956d53d8384a25c8995571ca5 # Parent 78d6fc9db9324d231dcb80f8084e4e5f85588d84 patch 8.1.0308: a quick undo shows "1 seconds ago" commit https://github.com/vim/vim/commit/fd6100b2aa6178b88cfadcdbc494966bf79a5488 Author: Bram Moolenaar Date: Tue Aug 21 17:07:45 2018 +0200 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. diff --git a/src/undo.c b/src/undo.c --- a/src/undo.c +++ b/src/undo.c @@ -3124,8 +3124,13 @@ u_add_time(char_u *buf, size_t buflen, t } 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 --- 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,