diff options
author | Lewis Russell <lewis6991@gmail.com> | 2021-03-21 00:00:50 +0000 |
---|---|---|
committer | Lewis Russell <lewis6991@gmail.com> | 2021-04-03 23:39:56 +0100 |
commit | 0b7e5eeb627b126093713db964185a8176f6f3cc (patch) | |
tree | d7ab5db782a8c98b67603903a4d8ebcb2254414b /src/nvim/option.c | |
parent | 804ea22944146a6607859dbfcf35d24946b065e2 (diff) | |
download | rneovim-0b7e5eeb627b126093713db964185a8176f6f3cc.tar.gz rneovim-0b7e5eeb627b126093713db964185a8176f6f3cc.tar.bz2 rneovim-0b7e5eeb627b126093713db964185a8176f6f3cc.zip |
vim-patch:8.1.1631: displaying signs is inefficient
+ support for neovim's dynamic width signcolumn
Problem: Displaying signs is inefficient.
Solution: Avoid making multiple calls to get information about a placed
sign. (Yegappan Lakshmanan, closes #4586)
Diffstat (limited to 'src/nvim/option.c')
-rw-r--r-- | src/nvim/option.c | 4 |
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 |