summaryrefslogtreecommitdiffstats
path: root/linenoise/linenoise.c
diff options
context:
space:
mode:
Diffstat (limited to 'linenoise/linenoise.c')
-rw-r--r--linenoise/linenoise.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/linenoise/linenoise.c b/linenoise/linenoise.c
index e61ba49d..78a3446f 100644
--- a/linenoise/linenoise.c
+++ b/linenoise/linenoise.c
@@ -2212,12 +2212,14 @@ static int edit(lino_t *l, const wchar_t *prompt)
}
break;
}
+ /* fallthrough */
+ l->save_hist_idx = l->history_index;
+ case CTL('F'):
+ ret = l->len;
if (l->mlmode)
edit_move_end(l);
if (l->need_refresh)
refresh_line(l);
- ret = l->len;
- l->save_hist_idx = l->history_index;
goto out;
case '?':
extended = 0;