diff options
author | zeertzjq <zeertzjq@outlook.com> | 2025-02-11 09:12:43 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2025-02-11 09:33:42 +0800 |
commit | 7f3157f3f654dcad4bb1e1f329b15db0458644ec (patch) | |
tree | 6098fd9a434c3184b2a52976e672e32642b9c235 /runtime/lua/vim/_editor.lua | |
parent | b7020e263e693dcad7de55f4175171f468ee44eb (diff) | |
download | rneovim-7f3157f3f654dcad4bb1e1f329b15db0458644ec.tar.gz rneovim-7f3157f3f654dcad4bb1e1f329b15db0458644ec.tar.bz2 rneovim-7f3157f3f654dcad4bb1e1f329b15db0458644ec.zip |
vim-patch:9.1.1101: insexpand.c hard to read
Problem: insexpand.c hard to read
Solution: refactor slightly to make it better readable
(glepnir)
Problem:
- Complex while loops with nested conditions
- Redundant if branches
- Hard to understand and maintain
Solution:
- Restructure using while(true) with clear break conditions
- Using ternary to replace some if conditions
- Add descriptive comments for each step
closes: vim/vim#16600
https://github.com/vim/vim/commit/40891bac5d4760e97ff59cd6264f6f00437536e8
Co-authored-by: glepnir <glephunter@gmail.com>
Diffstat (limited to 'runtime/lua/vim/_editor.lua')
0 files changed, 0 insertions, 0 deletions