aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/man.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-12-13 19:41:59 +0800
committerzeertzjq <zeertzjq@outlook.com>2024-12-13 20:01:26 +0800
commit8a0b203875610ce61539492c5aceb9c72e959806 (patch)
tree977f5964c3ffe5b4ea47a472374f2ae282dd504e /runtime/lua/man.lua
parent3e3a9843004683db142bd17f9bf36a5dab7b7ac8 (diff)
downloadrneovim-8a0b203875610ce61539492c5aceb9c72e959806.tar.gz
rneovim-8a0b203875610ce61539492c5aceb9c72e959806.tar.bz2
rneovim-8a0b203875610ce61539492c5aceb9c72e959806.zip
vim-patch:9.1.0921: popupmenu logic is a bit convoluted
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 https://github.com/vim/vim/commit/c942f84aadffd0c8969ecf81e3e9103722b2714f Co-authored-by: glepnir <glephunter@gmail.com>
Diffstat (limited to 'runtime/lua/man.lua')
0 files changed, 0 insertions, 0 deletions