summaryrefslogtreecommitdiffstats
path: root/Panel.c
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2022-10-22 19:19:39 +0200
committerBenBE <BenBE@geshi.org>2022-10-24 23:13:22 +0200
commit40104588f38250afde9f71b6204d789039bbfe3e (patch)
tree745e532580371db2ca85b4ae57b10f1ad3396531 /Panel.c
parent4ad530d1c00f649dcd02b818a3ccc7ded0aaf12d (diff)
Reformat code base
This includes: - Wrap function implementations - Pointer alignment for function signatures - Pointer alignment for variable declarations - Whitespace after keywords - Whitespace after comma - Whitespace around initializers - Whitespace around operators - Code indentation - Line break for single line statements - Misleading alignment
Diffstat (limited to 'Panel.c')
-rw-r--r--Panel.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Panel.c b/Panel.c
index 8a4d0aec..d1bc6a7b 100644
--- a/Panel.c
+++ b/Panel.c
@@ -471,7 +471,8 @@ HandlerResult Panel_selectByTyping(Panel* this, int ch) {
len = strlen(buffer);
for (int i = 0; i < size; i++) {
const char* cur = ((ListItem*) Panel_get(this, i))->value;
- while (*cur == ' ') cur++;
+ while (*cur == ' ')
+ cur++;
if (strncasecmp(cur, buffer, len) == 0) {
Panel_setSelected(this, i);
return HANDLED;

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