diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2017-03-08 12:51:06 +0100 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2017-03-08 12:55:06 +0100 |
commit | 0a0d0b7cd9ce2942d5194762478a4e24cd05eca4 (patch) | |
tree | 7201a3c96b350c071aa66ee588ffb6cd0bf5cbd7 /src/cmdline.cpp | |
parent | 892248991babb55366860488678632ab4ccdb0ba (diff) | |
download | sciteco-0a0d0b7cd9ce2942d5194762478a4e24cd05eca4.tar.gz |
fixup to 89224899: fixed function key macros after $ and the rubout-command editing key
* StateEscape should return the same fnmacro mask as StateStart
* When rubbing out a command, we should stop at StateEscape as well.
Therefore we reintroduced States::is_start().
RTTI is still not used.
Diffstat (limited to 'src/cmdline.cpp')
-rw-r--r-- | src/cmdline.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmdline.cpp b/src/cmdline.cpp index 55d63d7..7a1e6cf 100644 --- a/src/cmdline.cpp +++ b/src/cmdline.cpp @@ -586,12 +586,12 @@ State::process_edit_cmd(gchar key) /* reinsert command */ do cmdline.insert(); - while (States::current != &States::start && cmdline.rubout_len); + while (!States::is_start() && cmdline.rubout_len); } else { /* rubout command */ do cmdline.rubout(); - while (States::current != &States::start); + while (!States::is_start()); } return; |