diff options
author | C. McEnroe | 2020-04-03 17:10:52 -0400 |
---|---|---|
committer | C. McEnroe | 2020-04-03 17:10:52 -0400 |
commit | 75a6aa9258270169f43f56e063f1bfb57eebe56b (patch) | |
tree | 7db2ed9792116bf47541a02829d00da2adccb2ef /ui.c | |
parent | 6574f012c9480662778464bab23413501658a8e0 (diff) |
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.
Diffstat (limited to 'ui.c')
-rw-r--r-- | ui.c | 7 |
1 files changed, 1 insertions, 6 deletions
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); - } - } } } |