Bug 426535 - Indentation when applying renaming solution
Summary: Indentation when applying renaming solution
Status: RESOLVED DUPLICATE of bug 317299
Alias: None
Product: kdevelop
Classification: Applications
Component: Language Support: CPP (Clang-based) (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-14 18:25 UTC by Jaka Kranjc
Modified: 2020-09-15 02:55 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jaka Kranjc 2020-09-14 18:25:39 UTC
While changing variable names in a project indented with tabs, KDevelop tends to prepend a bunch of extra spaces if it's not done manually. 

STEPS TO REPRODUCE
This is visible via automatic renaming (context menu -> Rename X), but a tiny bit more simply by renaming a variable, switching to one of it's users and then accepting the suggested solution from the popup ("Replace X with Y").

OBSERVED RESULT
3 (!?) spaces are erroneusly prepended to the name (so after the leading tab).

Here's a three-step journey laid bare:
https://imgur.com/a/bMLmxHi

Observed with earlier versions, but it's still there in 5.6.0, so finally got the idea to file a report.
Comment 1 Igor Kushnir 2020-09-15 02:55:50 UTC

*** This bug has been marked as a duplicate of bug 317299 ***