mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 10:45:16 -07:00
8a0b203875
Problem: popupmenu logic is a bit convoluted
Solution: slightly refactor logic and use MIN/MAX() macros to simplify
(glepnir)
Define the MAX/MIN macros. Since we support some older platforms, C
compilers may not be as smart. This helps reduce unnecessary if
statements and redundant ternary expressions. Pre-calculate some
expressions by defining variables. Remove unnecessary parentheses.
Adjust certain lines to avoid exceeding 80 columns.
closes: vim/vim#16205
|
||
---|---|---|
.. | ||
cjson | ||
klib | ||
man | ||
mpack | ||
nvim | ||
vterm | ||
xdiff | ||
.valgrind.supp | ||
bit.c | ||
bit.h | ||
clint.py | ||
coverity-model.c | ||
nlua0.c | ||
uncrustify.cfg |