diff options
author | Matthieu Coudron <mattator@gmail.com> | 2020-03-01 16:43:06 +0100 |
---|---|---|
committer | Matthieu Coudron <mattator@gmail.com> | 2020-03-01 16:45:51 +0100 |
commit | 4ffae76520c924fa9f3d5f9850f84c89c002877c (patch) | |
tree | ef34989022a6590680efacc2068aec89de5312a1 /src/nvim/window.c | |
parent | 1a2be57da3f7e33af4e4eb3e0d36569feea71253 (diff) | |
download | rneovim-4ffae76520c924fa9f3d5f9850f84c89c002877c.tar.gz rneovim-4ffae76520c924fa9f3d5f9850f84c89c002877c.tar.bz2 rneovim-4ffae76520c924fa9f3d5f9850f84c89c002877c.zip |
addressing reviews
Diffstat (limited to 'src/nvim/window.c')
-rw-r--r-- | src/nvim/window.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/nvim/window.c b/src/nvim/window.c index df0033a203..f61a46996d 100644 --- a/src/nvim/window.c +++ b/src/nvim/window.c @@ -694,18 +694,15 @@ void win_check_anchored_floats(win_T *win) } } -/// Return the number of requested fold columns, based on current -/// folds signs and on user configuration. +/// Return the number of fold columns to display int win_fdccol_count(win_T *wp) { const char *fdc = (const char *)wp->w_p_fdc; // auto:<NUM> if (strncmp(fdc, "auto:", 5) == 0) { - int needed_fdccols; - needed_fdccols = getDeepestNesting(wp); - int maximum = fdc[5] - '0'; - return MIN(maximum, needed_fdccols); + int needed_fdccols = getDeepestNesting(wp); + return MIN(fdc[5] - '0', needed_fdccols); } else { return fdc[0] - '0'; } |