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

--- Comment #7 from Waqar Ahmed <waqar....@gmail.com> ---
Yeah, tab are treated differently.

The problem is that the file you linked contains way too many trailing spaces
in each line (2000+ sometimes). So, if you want to keep the spaces setting
enabled, a good local fix would be to just rtrim the whole file by 
- Hit F7
- type "rtrim" and press enter

This can be optimized in theory as the width of a space is constant. We can
just use that to quickly paint all the spaces. Problem is that dynamic word
wrapping makes things a bit trickier.

Maybe we can use something like QTextOption::ShowSpacesAndTab + draw the spaces
ourselves. That makes it a bit easier to optimize this case.

----

For part 2 => slow paste, I think this is because of "Indent on Paste". Do you
have it enabled? Your profile data shows that it is enabled, but maybe its
something else. I am not sure why indent on paste is getting executed on a
`.log` file in the first place as it doesn't have an indenter.

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

Reply via email to