mirror of
https://github.com/neovim/neovim.git
synced 2025-10-09 11:26:37 +00:00
fix(ui): set stc to empty in floatwin with minimal style (#21720)
fix(ui): set stc to emtpy in floatwin with minimal style
This commit is contained in:
@@ -114,8 +114,9 @@
|
||||
/// float where the text should not be edited. Disables
|
||||
/// 'number', 'relativenumber', 'cursorline', 'cursorcolumn',
|
||||
/// 'foldcolumn', 'spell' and 'list' options. 'signcolumn'
|
||||
/// is changed to `auto` and 'colorcolumn' is cleared. The
|
||||
/// end-of-buffer region is hidden by setting `eob` flag of
|
||||
/// is changed to `auto` and 'colorcolumn' is cleared.
|
||||
/// 'statuscolumn' is changed to empty. The end-of-buffer
|
||||
/// region is hidden by setting `eob` flag of
|
||||
/// 'fillchars' to a space char, and clearing the
|
||||
/// |hl-EndOfBuffer| region in 'winhighlight'.
|
||||
/// - border: Style of (optional) window border. This can either be a string
|
||||
|
@@ -786,6 +786,12 @@ void win_set_minimal_style(win_T *wp)
|
||||
free_string_option(wp->w_p_cc);
|
||||
wp->w_p_cc = xstrdup("");
|
||||
}
|
||||
|
||||
// statuscolumn: cleared
|
||||
if (wp->w_p_stc != NULL && *wp->w_p_stc != NUL) {
|
||||
free_string_option(wp->w_p_stc);
|
||||
wp->w_p_stc = xstrdup("");
|
||||
}
|
||||
}
|
||||
|
||||
void win_config_float(win_T *wp, FloatConfig fconfig)
|
||||
|
Reference in New Issue
Block a user