aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2019-08-14 14:49:27 +0200
committerBjörn Linse <bjorn.linse@gmail.com>2019-08-14 14:49:27 +0200
commitf9f238b21a9659e81e8e84f35e9cf886a5705a3c (patch)
tree97ade09bfefcde5c20eb3a88ed7f593d745e6c30 /src
parent5ad67af3c1884cd81a06986c4516c8a210bd7418 (diff)
downloadrneovim-f9f238b21a9659e81e8e84f35e9cf886a5705a3c.tar.gz
rneovim-f9f238b21a9659e81e8e84f35e9cf886a5705a3c.tar.bz2
rneovim-f9f238b21a9659e81e8e84f35e9cf886a5705a3c.zip
api: nvim_win_open() style="minimal" should disable 'foldcolumn'
Diffstat (limited to 'src')
-rw-r--r--src/nvim/api/vim.c8
-rw-r--r--src/nvim/window.c2
2 files changed, 6 insertions, 4 deletions
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");