summaryrefslogtreecommitdiff
path: root/src/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 0b3742b30..ad484b452 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -398,13 +398,7 @@ close_buffer(win, buf, action)
/* Return when a window is displaying the buffer or when it's not
* unloaded. */
if (buf->b_nwindows > 0 || !unload_buf)
- {
-#if 0 /* why was this here? */
- if (buf == curbuf)
- u_sync(); /* sync undo before going to another buffer */
-#endif
return;
- }
/* Always remove the buffer when there is no file name. */
if (buf->b_ffname == NULL)