mirror of
https://github.com/neovim/neovim.git
synced 2025-09-30 06:58:35 +00:00
fix(float): add fixd option
This commit is contained in:
@@ -1010,6 +1010,10 @@ void ui_ext_win_position(win_T *wp, bool validate)
|
||||
comp_col += grid->comp_col;
|
||||
comp_row = MAX(MIN(comp_row, Rows - wp->w_height_outer - (p_ch > 0 ? 1 : 0)), 0);
|
||||
comp_col = MAX(MIN(comp_col, Columns - wp->w_width_outer), 0);
|
||||
int right_extra = Columns - (int)c.col - wp->w_width - (c.border_chars[2][0] != 0);
|
||||
if (!(c.anchor & kFloatAnchorEast) && c.fixed && right_extra < 0) {
|
||||
comp_col = (int)c.col;
|
||||
}
|
||||
wp->w_winrow = comp_row;
|
||||
wp->w_wincol = comp_col;
|
||||
ui_comp_put_grid(&wp->w_grid_alloc, comp_row, comp_col,
|
||||
|
Reference in New Issue
Block a user