diff options
| author | Maria Solano <majosolano99@gmail.com> | 2026-07-20 02:02:17 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-07-20 05:02:17 -0400 |
| commit | 09a4cc8c50285fa5c7c094650f505de11f90dccc (patch) | |
| tree | 07b275f40673669674c6023160c9d77fd0b27d6b /test/functional/vimscript/executable_spec.lua | |
| parent | 4121f2cf25c45ec340135847e094e530fc2ff083 (diff) | |
| download | rneovim-09a4cc8c50285fa5c7c094650f505de11f90dccc.tar.gz rneovim-09a4cc8c50285fa5c7c094650f505de11f90dccc.tar.bz2 rneovim-09a4cc8c50285fa5c7c094650f505de11f90dccc.zip | |
fix(docs): multi-level list dedent indentation #40850
Problem:
The list-item indentation logic in `gen_help_html.lua` tracks `opt.indent` that
only decrements by one level when a list item is less indented than its sibling.
Dedenting across multiple nesting levels at once produces the wrong left margin.
Solution:
Track the exact leading whitespace for each indent level in a `opt.indent_ws` stack:
- On reset or a top-level item initialize the stack with the current item's
whitespace.
- When indenting deeper push the current whitespace at the new level.
- When dedenting pop every level whose tracked whitespace is deeper than the
current item (reaching the correct ancestor level).
Diffstat (limited to 'test/functional/vimscript/executable_spec.lua')
0 files changed, 0 insertions, 0 deletions