aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2013-01-22 19:26:45 +0100
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2013-01-22 19:26:45 +0100
commitaea39acc84741eb2fa868865e9fdc0395fa94478 (patch)
tree885e0744f5d593ed90c70708e0066c6219449723 /src
parent8d2362930fb5b998fbb0a638e51b1ca74a2a1c1a (diff)
downloadsciteco-aea39acc84741eb2fa868865e9fdc0395fa94478.tar.gz
fixed: macro program counter is fixed after error occurred while executing commandline
fixes errors in loops or loop interruptions (may leave program counter somewhere in the loop)
Diffstat (limited to 'src')
-rw-r--r--src/cmdline.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cmdline.cpp b/src/cmdline.cpp
index ddfe791..f36aab5 100644
--- a/src/cmdline.cpp
+++ b/src/cmdline.cpp
@@ -101,6 +101,8 @@ cmdline_keypress(gchar key)
*/
undo.pop(cmdline_p - cmdline);
cmdline_p[-1] = '\0';
+ /* program counter could be messed up */
+ macro_pc = cmdline_p - cmdline - 1;
break;
}
}