diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2025-02-24 04:04:47 +0300 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2025-02-24 04:04:47 +0300 |
commit | 376da1ea68879229d43704ebe70874020d0e8fd6 (patch) | |
tree | 9439709306f26395949c173287220b78697448a4 /src/help.c | |
parent | 00dd53661570996c637d0d4b28188427e04f22bc (diff) | |
download | sciteco-376da1ea68879229d43704ebe70874020d0e8fd6.tar.gz |
fixed rubbing out `?` (help) after editing a Q-Register
* Test case: @EQa// @?/EX/ -- Rubout should return you to the Q-Register view.
* The test suite has been extended.
Unfortunately we cannot currently directly check whether we're editing a Q-Register.
But we add a magic number of characters to the Q-Register, that we can check afterwards.
Diffstat (limited to 'src/help.c')
-rw-r--r-- | src/help.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; /* |