aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/search.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/search.cpp')
-rw-r--r--src/search.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/search.cpp b/src/search.cpp
index 370dbfc..8013385 100644
--- a/src/search.cpp
+++ b/src/search.cpp
@@ -527,7 +527,7 @@ StateSearch::done(const gchar *str)
if (eval_colon())
expressions.push(search_reg->get_integer());
else if (IS_FAILURE(search_reg->get_integer()) &&
- !expressions.find_op(Expressions::OP_LOOP) /* not in loop */)
+ expressions.find_op(Expressions::OP_LOOP) < 0 /* not in loop */)
interface.msg(InterfaceCurrent::MSG_ERROR, "Search string not found!");
return &States::start;