refactor(main.c): Simplify 'caseless' toggling

Regarding the note: Control C on most terminals close the
currently running process/program (in this case csope).

We should look to change this bind in the future.
This commit is contained in:
Sau P 2024-11-27 20:53:26 +00:00 committed by anon
parent 5b92f04e9c
commit dbd9636495

@ -212,13 +212,11 @@ void linemode_event_loop(void) {
case 'c': /* toggle caseless mode */ case 'c': /* toggle caseless mode */
case ctrl('C'): case ctrl('C'):
if (caseless == false) { /* 27-11-2024 20:42 yama XXX: The logic works but I am unable
caseless = true; to test functionality in the terminal? */
} else { caseless = !(caseless);
caseless = false; egrepcaseless(caseless);
} break;
egrepcaseless(caseless);
break;
case 'r': /* rebuild database cscope style */ case 'r': /* rebuild database cscope style */
case ctrl('R'): case ctrl('R'):