aboutsummaryrefslogtreecommitdiffstats
path: root/edit.c
diff options
context:
space:
mode:
Diffstat (limited to 'edit.c')
-rw-r--r--edit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/edit.c b/edit.c
index 463f318..c86f3f0 100644
--- a/edit.c
+++ b/edit.c
@@ -863,8 +863,8 @@ static void insert_string __P1 (char *,arg)
*/
void key_run_command __P1 (char *,cmd)
{
- clear_input_line(opt_compact && !echo_key);
- if (echo_key) {
+ clear_input_line(opt_compact && !opt_keyecho);
+ if (opt_keyecho) {
tty_printf("%s%s%s\n", edattrbeg, cmd, edattrend);
} else if (!opt_compact)
tty_putc('\n');