diff src/undo.c @ 3751:b7eea2409507 v7.3.634

updated for version 7.3.634 Problem: Month/Day format for undo is confusing. (Marcin Szamotulski) Solution: Always use Year/Month/Day, should work for everybody.
author Bram Moolenaar <bram@vim.org>
date Thu, 23 Aug 2012 12:59:02 +0200
parents 74d51b51f3e6
children 790238e5a46c
line wrap: on
line diff
--- a/src/undo.c
+++ b/src/undo.c
@@ -2880,11 +2880,8 @@ u_add_time(buf, buflen, tt)
 	if (time(NULL) - tt < (60L * 60L * 12L))
 	    /* within 12 hours */
 	    (void)strftime((char *)buf, buflen, "%H:%M:%S", curtime);
-	else if (time(NULL) - tt < (60L * 60L * 24L * 180L))
-	    /* within 6 months */
-	    (void)strftime((char *)buf, buflen, "%m/%d %H:%M:%S", curtime);
 	else
-	    /* long ago */
+	    /* longer ago */
 	    (void)strftime((char *)buf, buflen, "%Y/%m/%d %H:%M:%S", curtime);
     }
     else