aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/help.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/help.c b/src/help.c
index a093032..07acb86 100644
--- a/src/help.c
+++ b/src/help.c
@@ -289,13 +289,13 @@ teco_state_help_done(teco_machine_main_t *ctx, const teco_string_t *str, GError
return NULL;
}
- teco_ring_undo_edit();
/*
* ED hooks with the default lexer framework
* will usually load the styling SciTECO script
* when editing the buffer for the first time.
*/
- if (!teco_ring_edit(topic->filename, error))
+ if (!teco_current_doc_undo_edit(error) ||
+ !teco_ring_edit(topic->filename, error))
return NULL;
/*