https://bugs.kde.org/show_bug.cgi?id=468495

--- Comment #3 from Mykola Krachkovsky <w01dn...@gmail.com> ---
I think this commit made this behaviour:
(kf5)
https://invent.kde.org/frameworks/ktexteditor/-/commit/f6e70dd237ff184097102c10be3a1dcde0c3ab76
(master)
https://invent.kde.org/frameworks/ktexteditor/-/commit/431bdf7b40ffc385a6e52c884f8b2aa113901dde

This line looks suspicious:
`doc->editRemoveText(line, 0, indentDepth);`
before it was:
`doc->editRemoveText(line, 0, currentWhitespace.length());`

If indentDepth calculates tabs as tab width, then it removes all tabs and extra
chars from line, explains why (tab count) * (tab width - 1), -1 — tab char
itself.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to