summaryrefslogtreecommitdiffstats
path: root/Panel.c
diff options
context:
space:
mode:
authorDaniel Flanagan <daniel@lytedev.io>2019-10-31 11:39:12 -0500
committerDaniel Flanagan <daniel@lytedev.io>2019-10-31 11:39:12 -0500
commitdd33444f7eace81115308eadb568020470c48b2b (patch)
treeb13c2a7f17cc64458016d396829e95ef5cea9294 /Panel.c
parent28840683cfc5d48307b9b0f382f55f8c84d6a0c4 (diff)
Clean up existing whitespace
Diffstat (limited to 'Panel.c')
-rw-r--r--Panel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Panel.c b/Panel.c
index 1e53b4a4..fc4fa3c2 100644
--- a/Panel.c
+++ b/Panel.c
@@ -372,7 +372,7 @@ void Panel_draw(Panel* this, bool focus) {
bool Panel_onKey(Panel* this, int key) {
assert (this != NULL);
-
+
int size = Vector_size(this->items);
switch (key) {
case KEY_DOWN:
@@ -455,7 +455,7 @@ bool Panel_onKey(Panel* this, int key) {
if (this->selected < 0 || size == 0) {
this->selected = 0;
this->needsRedraw = true;
- } else if (this->selected >= size) {
+ } else if (this->selected >= size) {
this->selected = size - 1;
this->needsRedraw = true;
}

© 2014-2024 Faster IT GmbH | imprint | privacy policy