Apply coding style
Regards https://github.com/profanity-im/profanity/issues/1396
This commit is contained in:
@@ -44,7 +44,8 @@
|
||||
#include "config/preferences.h"
|
||||
|
||||
int
|
||||
_screen_line_row(int win_pos, int mainwin_pos) {
|
||||
_screen_line_row(int win_pos, int mainwin_pos)
|
||||
{
|
||||
int wrows = getmaxy(stdscr);
|
||||
|
||||
if (win_pos == 1) {
|
||||
@@ -54,7 +55,7 @@ _screen_line_row(int win_pos, int mainwin_pos) {
|
||||
if (win_pos == 2) {
|
||||
int row = 1;
|
||||
if (mainwin_pos == 1) {
|
||||
row = wrows-3;
|
||||
row = wrows - 3;
|
||||
}
|
||||
|
||||
return row;
|
||||
@@ -63,19 +64,19 @@ _screen_line_row(int win_pos, int mainwin_pos) {
|
||||
if (win_pos == 3) {
|
||||
int row = 2;
|
||||
if (mainwin_pos == 1 || mainwin_pos == 2) {
|
||||
row = wrows-2;
|
||||
row = wrows - 2;
|
||||
}
|
||||
|
||||
return row;
|
||||
}
|
||||
|
||||
return wrows-1;
|
||||
return wrows - 1;
|
||||
}
|
||||
|
||||
int
|
||||
screen_titlebar_row(void)
|
||||
{
|
||||
ProfWinPlacement *placement = prefs_get_win_placement();
|
||||
ProfWinPlacement* placement = prefs_get_win_placement();
|
||||
int row = _screen_line_row(placement->titlebar_pos, placement->mainwin_pos);
|
||||
prefs_free_win_placement(placement);
|
||||
|
||||
@@ -85,7 +86,7 @@ screen_titlebar_row(void)
|
||||
int
|
||||
screen_statusbar_row(void)
|
||||
{
|
||||
ProfWinPlacement *placement = prefs_get_win_placement();
|
||||
ProfWinPlacement* placement = prefs_get_win_placement();
|
||||
int row = _screen_line_row(placement->statusbar_pos, placement->mainwin_pos);
|
||||
prefs_free_win_placement(placement);
|
||||
|
||||
@@ -95,7 +96,7 @@ screen_statusbar_row(void)
|
||||
int
|
||||
screen_inputwin_row(void)
|
||||
{
|
||||
ProfWinPlacement *placement = prefs_get_win_placement();
|
||||
ProfWinPlacement* placement = prefs_get_win_placement();
|
||||
int row = _screen_line_row(placement->inputwin_pos, placement->mainwin_pos);
|
||||
prefs_free_win_placement(placement);
|
||||
|
||||
@@ -105,8 +106,8 @@ screen_inputwin_row(void)
|
||||
int
|
||||
screen_mainwin_row_start(void)
|
||||
{
|
||||
ProfWinPlacement *placement = prefs_get_win_placement();
|
||||
int row = placement->mainwin_pos-1;
|
||||
ProfWinPlacement* placement = prefs_get_win_placement();
|
||||
int row = placement->mainwin_pos - 1;
|
||||
prefs_free_win_placement(placement);
|
||||
|
||||
return row;
|
||||
@@ -115,7 +116,7 @@ screen_mainwin_row_start(void)
|
||||
int
|
||||
screen_mainwin_row_end(void)
|
||||
{
|
||||
ProfWinPlacement *placement = prefs_get_win_placement();
|
||||
ProfWinPlacement* placement = prefs_get_win_placement();
|
||||
int wrows = getmaxy(stdscr);
|
||||
int row = wrows - (5 - placement->mainwin_pos);
|
||||
prefs_free_win_placement(placement);
|
||||
|
||||
Reference in New Issue
Block a user