updated for version 7.0093
diff --git a/src/window.c b/src/window.c
index cb9e30a..81fc4c3 100644
--- a/src/window.c
+++ b/src/window.c
@@ -1955,6 +1955,10 @@
     frame_T	*frp;
     win_T	*wp;
 
+#ifdef FEAT_FOLDING
+    clearFolding(win);
+#endif
+
     /* reduce the reference count to the argument list. */
     alist_unlink(win->w_alist);