Artem Krinitsyn
dec3d8215d
fix(text): indent() ignores expandtab when indent unchanged #40932
...
Problem:
After expanding tabs with the `expandtab` option, if the old indent
matches the requested one, `vim.text.indent()` returns the input
unchanged.
The optimization path assumes that if old_indent == size, the input
wouldn't be changed, which is not correct when old_indent is formed by
expanded tabs.
Solution:
Apply the optimization only when `expandtab` is not set.
2026-07-26 06:24:39 -04:00
..
2026-07-21 13:22:39 +02:00
2026-07-21 13:22:39 +02:00
2026-07-21 13:22:39 +02:00
2026-07-21 13:22:39 +02:00
2026-07-21 13:22:39 +02:00
2026-07-21 13:22:39 +02:00
2026-07-21 13:22:39 +02:00
2026-07-21 13:22:39 +02:00
2026-07-21 13:22:39 +02:00
2026-07-21 13:22:39 +02:00
2026-07-25 18:02:55 -05:00
2026-07-21 13:22:39 +02:00
2026-07-21 13:22:39 +02:00
2026-07-21 13:22:39 +02:00
2026-07-21 13:22:39 +02:00
2026-07-21 13:22:39 +02:00
2026-07-21 13:22:39 +02:00
2026-07-21 13:22:39 +02:00
2026-07-21 13:22:39 +02:00
2026-07-21 13:22:39 +02:00
2026-07-21 13:22:39 +02:00
2026-07-21 13:22:39 +02:00
2026-07-21 13:22:39 +02:00
2026-07-24 13:05:20 +02:00
2026-07-21 13:22:39 +02:00
2026-07-21 13:22:39 +02:00
2026-07-21 13:22:39 +02:00
2026-07-21 13:22:39 +02:00
2026-07-21 13:22:39 +02:00
2026-07-21 13:22:39 +02:00
2026-07-21 13:22:39 +02:00
2026-07-21 08:04:16 -04:00
2026-07-26 06:24:39 -04:00
2026-07-21 13:22:39 +02:00
2026-07-21 13:22:39 +02:00
2026-07-21 13:22:39 +02:00
2026-07-21 13:22:39 +02:00
2026-07-21 13:22:39 +02:00
2026-07-21 13:22:39 +02:00
2026-07-21 13:22:39 +02:00
2026-07-21 13:22:39 +02:00
2026-07-25 10:36:56 -07:00
2026-07-21 13:22:39 +02:00
2026-07-21 13:22:39 +02:00
2026-07-21 13:22:39 +02:00