From f9f238b21a9659e81e8e84f35e9cf886a5705a3c Mon Sep 17 00:00:00 2001 From: Björn Linse Date: Wed, 14 Aug 2019 14:49:27 +0200 Subject: api: nvim_win_open() style="minimal" should disable 'foldcolumn' --- src/nvim/api/vim.c | 8 ++++---- src/nvim/window.c | 2 ++ 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/nvim/api/vim.c b/src/nvim/api/vim.c index ed6a28bcda..6280038d1a 100644 --- a/src/nvim/api/vim.c +++ b/src/nvim/api/vim.c @@ -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. diff --git a/src/nvim/window.c b/src/nvim/window.c index 22a8969b88..4173245439 100644 --- a/src/nvim/window.c +++ b/src/nvim/window.c @@ -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"); -- cgit