aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/parser.cpp
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2014-11-20 01:29:47 +0100
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2014-11-20 01:29:47 +0100
commit4282e7d6b2f2cd73e93bf478a4aae4ce92481808 (patch)
tree87ab1d9cb0d8601e61e576dd4d5c39cf59854a78 /src/parser.cpp
parentd4f8fb3efcb60cc2cd39ecb7ca65706db4c7b6ad (diff)
downloadsciteco-4282e7d6b2f2cd73e93bf478a4aae4ce92481808.tar.gz
allow a current buffer if we're editing a Q-Register
this eases handling of the "*" register
Diffstat (limited to 'src/parser.cpp')
-rw-r--r--src/parser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parser.cpp b/src/parser.cpp
index 575fc78..90447d4 100644
--- a/src/parser.cpp
+++ b/src/parser.cpp
@@ -1811,8 +1811,8 @@ StateECommand::custom(gchar chr)
*/
case 'F':
BEGIN_EXEC(&States::start);
- if (!ring.current)
- throw Error("No buffer selected");
+ if (QRegisters::current)
+ throw Error("Q-Register currently edited");
if (IS_FAILURE(expressions.pop_num_calc()) &&
ring.current->dirty)