changeset 3270:67a7ad766b4f

Fixed unloading of unused sublets
author unexist
date Tue, 26 Dec 2017 15:48:28 +0100
parents 976c4f4c4c51
children cbbaccde0f80
files src/subtle/ruby.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/subtle/ruby.c	Tue Dec 26 15:22:44 2017 +0100
+++ b/src/subtle/ruby.c	Tue Dec 26 15:48:28 2017 +0100
@@ -1482,13 +1482,17 @@
             }
         }
 
+
       /* Unloaded non-visible sublets */
       for(i = 0; i < subtle->sublets->ndata; i++)
         {
           SubPanel *p = PANEL(subtle->sublets->data[i]);
 
           if(p->flags & SUB_PANEL_SUBLET && !p->screen)
-            subRubyUnloadSublet(p);
+            {
+              subRubyUnloadSublet(p);
+              i--; ///< Prevent skipping of entries
+            }
         }
 
       /* Finally sort sublets */