Changeset 13947 for trunk/FACT++


Ignore:
Timestamp:
05/28/12 00:06:49 (12 years ago)
Author:
tbretz
Message:
Properly save variables in case of nested scripts.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/Readline.cc

    r13938 r13947  
    10741074        }
    10751075
    1076         const int save = fSection;
     1076        const string save  = fScript;
     1077        const int save_sec = fSection;
    10771078        Execute(opt, data);
    1078         if (save!=-3)
     1079        fScript = save;
     1080        if (save_sec!=-3)
    10791081        {
    1080             fSection = save;
    1081             SetSection(save);
     1082            fSection = save_sec;
     1083            SetSection(save_sec);
    10821084        }
    10831085
Note: See TracChangeset for help on using the changeset viewer.