comparison src/undo.c @ 14589:9c9ee53868b9 v8.1.0308

patch 8.1.0308: a quick undo shows "1 seconds ago" commit https://github.com/vim/vim/commit/fd6100b2aa6178b88cfadcdbc494966bf79a5488 Author: Bram Moolenaar <Bram@vim.org> 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.
author Christian Brabandt <cb@256bit.org>
date Tue, 21 Aug 2018 17:15:06 +0200
parents b8f1167aa8ad
children 27b9a84395b5
comparison
equal deleted inserted replaced
14588:78d6fc9db932 14589:9c9ee53868b9
3122 /* longer ago */ 3122 /* longer ago */
3123 (void)strftime((char *)buf, buflen, "%Y/%m/%d %H:%M:%S", curtime); 3123 (void)strftime((char *)buf, buflen, "%Y/%m/%d %H:%M:%S", curtime);
3124 } 3124 }
3125 else 3125 else
3126 #endif 3126 #endif
3127 vim_snprintf((char *)buf, buflen, _("%ld seconds ago"), 3127 {
3128 (long)(vim_time() - tt)); 3128 long seconds = (long)(vim_time() - tt);
3129
3130 vim_snprintf((char *)buf, buflen,
3131 NGETTEXT("%ld second ago", "%ld seconds ago", seconds),
3132 seconds);
3133 }
3129 } 3134 }
3130 3135
3131 /* 3136 /*
3132 * ":undojoin": continue adding to the last entry list 3137 * ":undojoin": continue adding to the last entry list
3133 */ 3138 */