diff options
Diffstat (limited to 'src/nvim/winfloat.c')
-rw-r--r-- | src/nvim/winfloat.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/nvim/winfloat.c b/src/nvim/winfloat.c index 4efff3cfab..87069d5682 100644 --- a/src/nvim/winfloat.c +++ b/src/nvim/winfloat.c @@ -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; |