aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/search.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/search.cpp')
-rw-r--r--src/search.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/search.cpp b/src/search.cpp
index bd0802e..16706ee 100644
--- a/src/search.cpp
+++ b/src/search.cpp
@@ -421,9 +421,9 @@ StateSearch::process(const gchar *str, gint new_chars)
gint count = parameters.count;
if (current_doc_must_undo())
- undo.push_msg(SCI_SETSEL,
- interface.ssm(SCI_GETANCHOR),
- interface.ssm(SCI_GETCURRENTPOS));
+ interface.undo_ssm(SCI_SETSEL,
+ interface.ssm(SCI_GETANCHOR),
+ interface.ssm(SCI_GETCURRENTPOS));
search_reg->undo_set_integer();
search_reg->set_integer(FAILURE);
@@ -510,7 +510,7 @@ StateSearch::done(const gchar *str)
/* workaround: preserve selection (also on rubout) */
gint anchor = interface.ssm(SCI_GETANCHOR);
if (current_doc_must_undo())
- undo.push_msg(SCI_SETANCHOR, anchor);
+ interface.undo_ssm(SCI_SETANCHOR, anchor);
search_reg->undo_set_string();
search_reg->set_string(str);
@@ -661,7 +661,7 @@ StateSearchKill::done(const gchar *str)
gint anchor = interface.ssm(SCI_GETANCHOR);
if (current_doc_must_undo())
- undo.push_msg(SCI_GOTOPOS, dot);
+ interface.undo_ssm(SCI_GOTOPOS, dot);
interface.ssm(SCI_GOTOPOS, anchor);
interface.ssm(SCI_DELETERANGE,
@@ -674,7 +674,7 @@ StateSearchKill::done(const gchar *str)
ring.dirtify();
if (current_doc_must_undo())
- undo.push_msg(SCI_UNDO);
+ interface.undo_ssm(SCI_UNDO);
return &States::start;
}
@@ -708,7 +708,7 @@ StateSearchDelete::done(const gchar *str)
ring.dirtify();
if (current_doc_must_undo())
- undo.push_msg(SCI_UNDO);
+ interface.undo_ssm(SCI_UNDO);
}
return &States::start;