diff options
| author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2013-01-22 19:26:45 +0100 |
|---|---|---|
| committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2013-01-22 19:26:45 +0100 |
| commit | aea39acc84741eb2fa868865e9fdc0395fa94478 (patch) | |
| tree | 885e0744f5d593ed90c70708e0066c6219449723 | |
| parent | 8d2362930fb5b998fbb0a638e51b1ca74a2a1c1a (diff) | |
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)
| -rw-r--r-- | TODO | 4 | ||||
| -rw-r--r-- | src/cmdline.cpp | 2 |
2 files changed, 4 insertions, 2 deletions
@@ -1,6 +1,6 @@ Known Bugs: - * Dot is not always restored properly (e.g. after closing file) - * Strange behaviour after loop interruption (e.g. "<%a>") + * ??? Dot is not always restored properly (e.g. after closing file) + need test case!!! * Null-byte in strings not always handled transparently * saving another user's file will only preserve the user when run as root (WON'T FIX!?) 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; } } |
