Skip to content

Instantly share code, notes, and snippets.

@mattn
Created March 8, 2014 11:48
Show Gist options
  • Save mattn/9429300 to your computer and use it in GitHub Desktop.
Save mattn/9429300 to your computer and use it in GitHub Desktop.
diff -r 10d35c8b50e3 src/ex_cmds.c
--- a/src/ex_cmds.c Mon Feb 24 03:32:00 2014 +0100
+++ b/src/ex_cmds.c Sat Mar 08 20:48:28 2014 +0900
@@ -3345,7 +3345,6 @@
else /* existing memfile */
{
oldbuf = TRUE;
- (void)buf_check_timestamp(buf, FALSE);
/* Check if autocommands made buffer invalid or changed the current
* buffer. */
if (!buf_valid(buf)
@@ -3354,6 +3353,8 @@
#endif
)
goto theend;
+ else
+ buf_check_timestamp(buf, FALSE);
#ifdef FEAT_EVAL
if (aborting()) /* autocmds may abort script processing */
goto theend;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment