Bug 376521

Summary: Rename does not show leading white space, but still applies it.
Product: [Applications] kdevelop Reporter: gustavo.goretkin+kdebug
Component: DocumentviewAssignee: kdevelop-bugs-null
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: 5.0.3   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description gustavo.goretkin+kdebug 2017-02-15 21:08:40 UTC
steps to reproduce

1. copy to the clipboard an identifier at the beginning of an indented line. select the indentation as well.
2. select another identifier and right-click and `Rename`.
3. paste into the `New name` field. notice that leading white space is not shown.
4. click `Rename`

Observe that white space is added to renamed identifiers.
Comment 1 Milian Wolff 2017-02-20 20:46:17 UTC
Git commit 9e440fc3f5acd36846ce01abbd65a577aad31e91 by Milian Wolff.
Committed on 20/02/2017 at 20:45.
Pushed by mwolff into branch '5.1'.

Trim identifiers before triggering rename action

M  +1    -1    language/assistant/renameaction.cpp
M  +1    -1    language/assistant/renameassistant.cpp
M  +3    -2    language/codegen/basicrefactoring.cpp

https://commits.kde.org/kdevplatform/9e440fc3f5acd36846ce01abbd65a577aad31e91