aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/option.c
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2021-04-04 10:28:16 -0400
committerGitHub <noreply@github.com>2021-04-04 10:28:16 -0400
commit76f5c72860b237d66c949dcdeb6967047810b956 (patch)
treee000e4434bfa1bac72ba2b30bb0053cda0ac250a /src/nvim/option.c
parentce976bf3559edca6d3a649c9053fab88959de6cf (diff)
parentd82b599ea5399c27878eaf26a9cbf9ac138ee915 (diff)
downloadrneovim-76f5c72860b237d66c949dcdeb6967047810b956.tar.gz
rneovim-76f5c72860b237d66c949dcdeb6967047810b956.tar.bz2
rneovim-76f5c72860b237d66c949dcdeb6967047810b956.zip
Merge pull request #14063 from lewis6991/master
vim-patch:8.1.{1631,1682,1899}: sign improvements
Diffstat (limited to 'src/nvim/option.c')
-rw-r--r--src/nvim/option.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c
index 612ecca96a..4c43521f4d 100644
--- a/src/nvim/option.c
+++ b/src/nvim/option.c
@@ -7607,7 +7607,9 @@ int win_signcol_count(win_T *wp)
}
}
- return MAX(minimum, MIN(maximum, needed_signcols));
+ int ret = MAX(minimum, MIN(maximum, needed_signcols));
+ assert(ret <= SIGN_SHOW_MAX);
+ return ret;
}
/// Get window or buffer local options