Commit Diff
- Commit:
751490770ba7a1fe3669a4a604d7412ba8cba776
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
- Message:
- 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
- Actions:
- Patch | Tree
--- 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 &&