aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/cmdline.cpp
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2017-03-18 21:41:46 +0100
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2017-03-18 21:52:22 +0100
commit5069c3b800a5806ef132d187c4ec93d037d55ad2 (patch)
tree1553a24addda46301792148d1b7fa8303cf7d26a /src/cmdline.cpp
parent8b00fa817e24224245df1ae8776f139d807ce87a (diff)
fixed Q-Reg autocompletion for `Q` command
* StateQueryQReg is now derived from StateExpectQReg whose semantics have been changed slightly. * The alternative would have been another common base class for both StateQueryQReg and StateExpectQReg.
Diffstat (limited to 'src/cmdline.cpp')
-rw-r--r--src/cmdline.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmdline.cpp b/src/cmdline.cpp
index 7a1e6cf..f10da33 100644
--- a/src/cmdline.cpp
+++ b/src/cmdline.cpp
@@ -984,11 +984,11 @@ StateGetHelp::process_edit_cmd(gchar key)
State *
StateSaveCmdline::got_register(QRegister *reg)
{
- BEGIN_EXEC(&States::start);
+ machine.reset();
+ BEGIN_EXEC(&States::start);
reg->undo_set_string();
reg->set_string(last_cmdline.str, last_cmdline.len);
-
return &States::start;
}