commit 751490770ba7a1fe3669a4a604d7412ba8cba776 from: Stefan Sperling date: Mon Aug 30 19:07:58 2021 UTC make tog ignore Ctrl+L and B while loading all commits Otherwise tog gets into a funky non-recoverable state if these keys are pressed instead of Backspace while commits are loading. bug found by + ok tracey commit - 27890b182992d202636b55c305e5dc4175f4cd0b commit + 751490770ba7a1fe3669a4a604d7412ba8cba776 blob - c8ded57bca7b20145e9cfbd5a9b122e87139a810 blob + 06ff7cdc6e39eab3ef6dd7f651bd12066ef3b237 --- tog/tog.c +++ tog/tog.c @@ -2542,8 +2542,9 @@ input_log_view(struct tog_view **new_view, struct tog_ case KEY_BACKSPACE: case CTRL('l'): case 'B': - if (ch == KEY_BACKSPACE && s->thread_args.load_all) { - s->thread_args.load_all = 0; + if (s->thread_args.load_all) { + if (ch == KEY_BACKSPACE) + s->thread_args.load_all = 0; break; } if (ch == KEY_BACKSPACE &&