aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2025-07-20 11:14:57 +0300
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2025-07-20 11:14:57 +0300
commit20aef26f311cc04550cc188e237c9288d5fb7b72 (patch)
treeef6953f3b0220f6abaa20f383049111e158c2d0b /src
parentac180a94ff749f5df7705279d3d08258417b9b34 (diff)
downloadsciteco-20aef26f311cc04550cc188e237c9288d5fb7b72.tar.gz
document bug: you cannot currently use `{` and `}` to insert anything after $$ into the commandline
Diffstat (limited to 'src')
-rw-r--r--src/cmdline.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cmdline.c b/src/cmdline.c
index b03f72a..8612312 100644
--- a/src/cmdline.c
+++ b/src/cmdline.c
@@ -304,6 +304,9 @@ teco_cmdline_keypress(const gchar *data, gsize len, GError **error)
teco_string_clear(&teco_last_cmdline);
teco_last_cmdline = teco_cmdline.str;
+ /*
+ * FIXME: Preserve the command line after the $$.
+ */
memset(&teco_cmdline.str, 0, sizeof(teco_cmdline.str));
teco_cmdline.effective_len = 0;