diff options
-rw-r--r-- | src/cmdline.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmdline.c b/src/cmdline.c index 25b93c3..e402124 100644 --- a/src/cmdline.c +++ b/src/cmdline.c @@ -226,7 +226,7 @@ teco_cmdline_keypress(const gchar *data, gsize len, GError **error) */ teco_interface_msg_clear(); - gsize start_pc = teco_cmdline.pc; + gsize start_pc = teco_cmdline.effective_len; for (guint i = 0; i < len; i = g_utf8_next_char(data+i) - data) { gunichar chr = g_utf8_get_char(data+i); @@ -318,7 +318,7 @@ teco_cmdline_keypress(const gchar *data, gsize len, GError **error) * but we obviously can't rub out beyond the return if any * error occurs later on. */ - start_pc = teco_cmdline.pc; + start_pc = 0; } /* |