Command history: Save in file before each execution to avoid to lose it in case of...
[scilab.git] / scilab / modules / core / src / cpp / runner.cpp
index 562786b..cd0687d 100644 (file)
@@ -21,6 +21,7 @@
 
 extern "C"
 {
+#include "HistoryManager.h"
 #include "BrowseVarManager.h"
 #include "FileBrowserChDir.h"
 #include "scicurdir.h"
@@ -172,6 +173,7 @@ int StaticRunner::launch()
         int err = 0;
 
         UpdateBrowseVar();
+        saveScilabHistoryToFile();
         cwd = scigetcwd(&err);
         if (cwd)
         {