Bug 376521 - Rename does not show leading white space, but still applies it.
Summary: Rename does not show leading white space, but still applies it.
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: Documentview (other bugs)
Version First Reported In: 5.0.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-15 21:08 UTC by gustavo.goretkin+kdebug
Modified: 2017-02-20 20:46 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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