diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2025-07-27 19:01:43 +0300 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2025-07-27 19:01:43 +0300 |
commit | dfa4394c1df45755de955260b1d7412c673a7ca0 (patch) | |
tree | d340fe60b2c0c71a295235347ca3179a09a5ef5d /src | |
parent | e94dce1f9770abde689314fb993a23800e2bcc9f (diff) | |
download | sciteco-dfa4394c1df45755de955260b1d7412c673a7ca0.tar.gz |
fixed using the command-line replacement register (ESC) in batch mode: was causing assertions when entering interactive mode
Also added a regression test case.
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -518,8 +518,7 @@ main(int argc, char **argv) * If munged file didn't quit, switch into interactive mode */ /* commandline replacement string register */ - teco_qreg_table_insert_unique(&teco_qreg_table_globals, - teco_qreg_plain_new("\e", 1)); + teco_qreg_table_replace(&teco_qreg_table_globals, teco_qreg_plain_new("\e", 1)); teco_undo_enabled = TRUE; teco_ring_set_scintilla_undo(TRUE); |