mirror of
https://github.com/neovim/neovim.git
synced 2025-10-05 09:26:30 +00:00
docs: add style rule regarding initialization
Specifically, specify that each initialization should be done on a separate line.
This commit is contained in:
@@ -146,7 +146,9 @@ void win_config_float(win_T *wp, FloatConfig fconfig)
|
||||
fconfig.col += curwin->w_wcol;
|
||||
fconfig.window = curwin->handle;
|
||||
} else if (fconfig.relative == kFloatRelativeMouse) {
|
||||
int row = mouse_row, col = mouse_col, grid = mouse_grid;
|
||||
int row = mouse_row;
|
||||
int col = mouse_col;
|
||||
int grid = mouse_grid;
|
||||
win_T *mouse_win = mouse_find_win(&grid, &row, &col);
|
||||
if (mouse_win != NULL) {
|
||||
fconfig.relative = kFloatRelativeWindow;
|
||||
@@ -197,7 +199,8 @@ void win_config_float(win_T *wp, FloatConfig fconfig)
|
||||
row += parent->w_winrow;
|
||||
col += parent->w_wincol;
|
||||
ScreenGrid *grid = &parent->w_grid;
|
||||
int row_off = 0, col_off = 0;
|
||||
int row_off = 0;
|
||||
int col_off = 0;
|
||||
grid_adjust(&grid, &row_off, &col_off);
|
||||
row += row_off;
|
||||
col += col_off;
|
||||
|
Reference in New Issue
Block a user