aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/spawn.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/spawn.c')
-rw-r--r--src/spawn.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/spawn.c b/src/spawn.c
index 085140b..46454ff 100644
--- a/src/spawn.c
+++ b/src/spawn.c
@@ -296,9 +296,9 @@ teco_state_execute_done(teco_machine_main_t *ctx, const teco_string_t *str, GErr
if (!teco_spawn_ctx.register_argument) {
if (teco_current_doc_must_undo())
- undo__teco_interface_ssm(SCI_GOTOPOS,
+ undo__teco_interface_ssm(SCI_SETEMPTYSELECTION,
teco_interface_ssm(SCI_GETCURRENTPOS, 0, 0), 0);
- teco_interface_ssm(SCI_GOTOPOS, teco_spawn_ctx.to, 0);
+ teco_interface_ssm(SCI_SETEMPTYSELECTION, teco_spawn_ctx.to, 0);
}
teco_interface_ssm(SCI_BEGINUNDOACTION, 0, 0);
@@ -319,7 +319,6 @@ teco_state_execute_done(teco_machine_main_t *ctx, const teco_string_t *str, GErr
/* undo action is only effective if it changed anything */
if (teco_current_doc_must_undo())
undo__teco_interface_ssm(SCI_UNDO, 0, 0);
- teco_interface_ssm(SCI_SCROLLCARET, 0, 0);
teco_ring_dirtify();
}