mirror of
https://github.com/neovim/neovim.git
synced 2025-10-07 18:36:30 +00:00
Merge pull request #10774 from bfredl/miminal_fdc
api: nvim_win_open() style="minimal" should disable 'foldcolumn'
This commit is contained in:
@@ -1071,10 +1071,10 @@ fail:
|
||||
/// disabled. This is useful when displaing a temporary
|
||||
/// float where the text should not be edited. Disables
|
||||
/// 'number', 'relativenumber', 'cursorline', 'cursorcolumn',
|
||||
/// 'spell' and 'list' options. 'signcolumn' is changed to
|
||||
/// `auto`. The end-of-buffer region is hidden by setting
|
||||
/// `eob` flag of 'fillchars' to a space char, and clearing
|
||||
/// the |EndOfBuffer| region in 'winhighlight'.
|
||||
/// 'foldcolumn', 'spell' and 'list' options. 'signcolumn'
|
||||
/// is changed to `auto`. The end-of-buffer region is hidden
|
||||
/// by setting `eob` flag of 'fillchars' to a space char,
|
||||
/// and clearing the |EndOfBuffer| region in 'winhighlight'.
|
||||
///
|
||||
/// top-level window. Currently accepts no other positioning
|
||||
/// configuration together with this.
|
||||
|
@@ -598,6 +598,7 @@ void win_set_minimal_style(win_T *wp)
|
||||
wp->w_p_cuc = false;
|
||||
wp->w_p_spell = false;
|
||||
wp->w_p_list = false;
|
||||
wp->w_p_fdc = 0;
|
||||
|
||||
// Hide EOB region: use " " fillchar and cleared highlighting
|
||||
if (wp->w_p_fcs_chars.eob != ' ') {
|
||||
@@ -615,6 +616,7 @@ void win_set_minimal_style(win_T *wp)
|
||||
xfree(old);
|
||||
}
|
||||
|
||||
// signcolumn: use 'auto'
|
||||
if (wp->w_p_scl[0] != 'a') {
|
||||
xfree(wp->w_p_scl);
|
||||
wp->w_p_scl = (char_u *)xstrdup("auto");
|
||||
|
Reference in New Issue
Block a user