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:
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'):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user