changeset 16627:58009c45c31c v8.1.1316

patch 8.1.1316: duplicated localtime() call commit https://github.com/vim/vim/commit/d6896731ecb74b419389f75d79210e088a9caa77 Author: Bram Moolenaar <Bram@vim.org> Date: Sat May 11 13:09:42 2019 +0200 patch 8.1.1316: duplicated localtime() call Problem: Duplicated localtime() call. Solution: Delete one.
author Bram Moolenaar <Bram@vim.org>
date Sat, 11 May 2019 13:15:05 +0200
parents 44290e98c950
children be59853d0848
files src/undo.c src/version.c
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/undo.c
+++ b/src/undo.c
@@ -3117,7 +3117,6 @@ u_add_time(char_u *buf, size_t buflen, t
 
     if (vim_time() - tt >= 100)
     {
-	curtime = localtime(&tt);
 # ifdef HAVE_LOCALTIME_R
 	curtime = localtime_r(&tt, &tmval);
 # else
--- a/src/version.c
+++ b/src/version.c
@@ -768,6 +768,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1316,
+/**/
     1315,
 /**/
     1314,