shithub: mc

Download patch

ref: 02fa3c02b2bf6f5b7e8473fcb3d8e0140ce9c17e
parent: f09039219801304f624d87309a320b23b3cedb92
author: Ori Bernstein <[email protected]>
date: Mon Aug 18 13:02:06 EDT 2014

Preserve indexes when folding variables.

--- a/mi/fold.c
+++ b/mi/fold.c
@@ -204,6 +204,9 @@
             break;
     }
 
+    if (r && n->expr.idx)
+      r->expr.idx = n->expr.idx;
+
     if (r)
         return r;
     else