From 75a6aa9258270169f43f56e063f1bfb57eebe56b Mon Sep 17 00:00:00 2001 From: C. McEnroe Date: Fri, 3 Apr 2020 17:10:52 -0400 Subject: Use gnu-case-range and gnu-conditional-omitted-operand extensions I'm sad to do this but I just can't stand writing (foo ? foo : bar) anymore. --- ui.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'ui.c') diff --git a/ui.c b/ui.c index 6d9dddc..2a26ac3 100644 --- a/ui.c +++ b/ui.c @@ -891,6 +891,7 @@ static void keyCode(int code) { break; case KeyMetaMinus: window->ignore ^= true; reflow(window); break; case KeyMetaSlash: windowShow(windows.swap); + break; case KeyMeta0 ... KeyMeta9: uiShowNum(code - KeyMeta0); break; case KeyMetaA: showAuto(); break; case KeyMetaB: edit(id, EditPrevWord, 0); break; case KeyMetaD: edit(id, EditDeleteNextWord, 0); @@ -911,12 +912,6 @@ static void keyCode(int code) { break; case KEY_PPAGE: windowScroll(window, +(PAGE_LINES - 2)); break; case KEY_RIGHT: edit(id, EditNext, 0); break; case KEY_UP: windowScroll(window, +1); - - break; default: { - if (code >= KeyMeta0 && code <= KeyMeta9) { - uiShowNum(code - KeyMeta0); - } - } } } -- cgit 1.4.1-2-gfad0