aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2025-07-27 19:01:43 +0300
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2025-07-27 19:01:43 +0300
commitdfa4394c1df45755de955260b1d7412c673a7ca0 (patch)
treed340fe60b2c0c71a295235347ca3179a09a5ef5d /src
parente94dce1f9770abde689314fb993a23800e2bcc9f (diff)
downloadsciteco-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.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 1cedb9d..c8ac27b 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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);