mirror of
https://github.com/neovim/neovim.git
synced 2025-10-15 22:36:09 +00:00
refactor: rename FloatConfig to WinConfig #27397
`FloatConfig` is no longer used only for floats, so the name is counterintuitive. Followup to #25550
This commit is contained in:
@@ -941,19 +941,19 @@ typedef struct {
|
||||
bool noautocmd;
|
||||
bool fixed;
|
||||
bool hide;
|
||||
} FloatConfig;
|
||||
} WinConfig;
|
||||
|
||||
#define FLOAT_CONFIG_INIT ((FloatConfig){ .height = 0, .width = 0, \
|
||||
.bufpos = { -1, 0 }, \
|
||||
.row = 0, .col = 0, .anchor = 0, \
|
||||
.relative = 0, .external = false, \
|
||||
.focusable = true, \
|
||||
.split = 0, \
|
||||
.zindex = kZIndexFloatDefault, \
|
||||
.style = kWinStyleUnused, \
|
||||
.noautocmd = false, \
|
||||
.hide = false, \
|
||||
.fixed = false })
|
||||
#define WIN_CONFIG_INIT ((WinConfig){ .height = 0, .width = 0, \
|
||||
.bufpos = { -1, 0 }, \
|
||||
.row = 0, .col = 0, .anchor = 0, \
|
||||
.relative = 0, .external = false, \
|
||||
.focusable = true, \
|
||||
.split = 0, \
|
||||
.zindex = kZIndexFloatDefault, \
|
||||
.style = kWinStyleUnused, \
|
||||
.noautocmd = false, \
|
||||
.hide = false, \
|
||||
.fixed = false })
|
||||
|
||||
// Structure to store last cursor position and topline. Used by check_lnums()
|
||||
// and reset_lnums().
|
||||
@@ -1278,7 +1278,7 @@ struct window_S {
|
||||
bool w_pos_changed; // true if window position changed
|
||||
bool w_floating; ///< whether the window is floating
|
||||
bool w_float_is_info; // the floating window is info float
|
||||
FloatConfig w_float_config;
|
||||
WinConfig w_float_config;
|
||||
|
||||
// w_fraction is the fractional row of the cursor within the window, from
|
||||
// 0 at the top row to FRACTION_MULT at the last row.
|
||||
|
Reference in New Issue
Block a user