diff options
author | Benny Baumann <BenBE@geshi.org> | 2022-10-22 19:19:39 +0200 |
---|---|---|
committer | BenBE <BenBE@geshi.org> | 2022-10-24 23:13:22 +0200 |
commit | 40104588f38250afde9f71b6204d789039bbfe3e (patch) | |
tree | 745e532580371db2ca85b4ae57b10f1ad3396531 /ScreensPanel.c | |
parent | 4ad530d1c00f649dcd02b818a3ccc7ded0aaf12d (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 'ScreensPanel.c')
-rw-r--r-- | ScreensPanel.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ScreensPanel.c b/ScreensPanel.c index 3d55546c..1fd4ae56 100644 --- a/ScreensPanel.c +++ b/ScreensPanel.c @@ -70,7 +70,7 @@ static HandlerResult ScreensPanel_eventHandlerRenaming(Panel* super, int ch) { Panel_setCursorToSelection(super); } } else { - switch(ch) { + switch (ch) { case 127: case KEY_BACKSPACE: { @@ -157,7 +157,7 @@ static void addNewScreen(Panel* super) { ScreensPanel* const this = (ScreensPanel*) super; const char* name = "New"; - ScreenSettings* ss = Settings_newScreen(this->settings, &(const ScreenDefaults){ .name = name, .columns = "PID Command", .sortKey = "PID" }); + ScreenSettings* ss = Settings_newScreen(this->settings, &(const ScreenDefaults) { .name = name, .columns = "PID Command", .sortKey = "PID" }); ScreenListItem* item = ScreenListItem_new(name, ss); int idx = Panel_getSelectedIndex(super); Panel_insert(super, idx + 1, (Object*) item); @@ -171,7 +171,7 @@ static HandlerResult ScreensPanel_eventHandlerNormal(Panel* super, int ch) { ScreenListItem* oldFocus = (ScreenListItem*) Panel_getSelected(super); bool shouldRebuildArray = false; HandlerResult result = IGNORED; - switch(ch) { + switch (ch) { case '\n': case '\r': case KEY_ENTER: |