eric pouech (@epo) commented about programs/conhost/conhost.c:
while (ctx->history_index != start_pos);
}
+static void edit_line_copy_from_hist( struct console *console, int copycount ) +{
- if (console->edit_line.history_index)
- {
unsigned int index = console->edit_line.history_index - 1;
why -1?
you could probably swap this line with next to use `ctx`