Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(submit): trim new word before using #123

Merged
merged 1 commit into from
May 19, 2022

Conversation

filipdutescu
Copy link
Owner

Motivation

Trim the new word of leading and ending spaces before using it to rename. This should prevent padding from being used in the final name, as well as making it a bit more logic and consistent with most IDEs.

Fixes: GH-119

Proposed changes

Test plan

Existing tests are updated and a new test case is added in lua/tests/rename_close_spec.lua.

@filipdutescu filipdutescu added this to the 5.0.0 milestone May 19, 2022
@filipdutescu filipdutescu self-assigned this May 19, 2022
@filipdutescu filipdutescu force-pushed the fix/padding_used_in_renaming branch 3 times, most recently from 8e4b135 to 6e995bc Compare May 19, 2022 20:08
Trim the new word of leading and ending spaces before using it to
rename. This should prevent padding from being used in the final name,
as well as making it a bit more logic and consistent with most IDEs.

Fixes: GH-119
Signed-off-by: Filip Dutescu <filip.dutescu@gmail.com>
@filipdutescu filipdutescu merged commit 7a2c0a1 into develop May 19, 2022
@filipdutescu filipdutescu deleted the fix/padding_used_in_renaming branch May 19, 2022 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] Horizontal padding is interpreted as literal text
1 participant