10000 [Console][QuestionHelper] Use String width() to properly move the cursor backwards by fancyweb · Pull Request #35578 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Console][QuestionHelper] Use String width() to properly move the cursor backwards #35578

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

Merged
merged 1 commit into from
Feb 11, 2020

Conversation

fancyweb
Copy link
Contributor
@fancyweb fancyweb commented Feb 3, 2020
Q A
Branch? master
Bug fix? yes
New feature? no
Deprecations? no
Tickets #35536 (comment)
License MIT
Doc PR -

This bug can only be fixed on master since we need to require the String component. Once the component is required, we can iterate in the Console component to use it more where it is needed.

@fancyweb fancyweb changed the title [Console][QuestionHelper] Use String width() to properly move the cursor backwards [WIP][Console][QuestionHelper] Use String width() to properly move the cursor backwards Feb 6, 2020
fabpot added a commit that referenced this pull request Feb 7, 2020
This PR was merged into the 5.1-dev branch.

Discussion
----------

[String] Remove the @experimental status

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | #35578 (comment)
| License       | MIT
| Doc PR        | -

Commits
-------

3d15f91 [String] Remove the @experimental status
nicolas-grekas added a commit that referenced this pull request Feb 7, 2020
This PR was merged into the 5.1-dev branch.

Discussion
----------

[String] Add the s() helper method

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes
| Deprecations? | no
| Tickets       | #35578 (comment)
| License       | MIT
| Doc PR        | -

This method will be useful in our code base, and to anyone that doesn't really understand the differences between UnicodeString and ByteString.

Commits
-------

659cdf1 [String] Add the s() helper method
@fancyweb fancyweb force-pushed the console-use-string-component branch from cd34a17 to 67a1f55 Compare February 10, 2020 09:12
@nicolas-grekas nicolas-grekas changed the title [WIP][Console][QuestionHelper] Use String width() to properly move the cursor backwards [Console][QuestionHelper] Use String width() to properly move the cursor backwards Feb 11, 2020
@fabpot
Copy link
Member
fabpot commented Feb 11, 2020

Thank you @fancyweb.

fabpot added a commit that referenced this pull request Feb 11, 2020
…ove the cursor backwards (fancyweb)

This PR was merged into the 5.1-dev branch.

Discussion
----------

[Console][QuestionHelper] Use String width() to properly move the cursor backwards

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | #35536 (comment)
| License       | MIT
| Doc PR        | -

This bug can only be fixed on master since we need to require the String component. Once the component is required, we can iterate in the Console component to use it more where it is needed.

Commits
-------

67a1f55 [Console][QuestionHelper] Use String width() to properly move the cursor backwards
@fabpot fabpot merged commit 67a1f55 into symfony:master Feb 11, 2020
@fancyweb fancyweb deleted the console-use-string-component branch February 13, 2020 07:54
@nicolas-grekas nicolas-grekas modified the milestones: next, 5.1 May 4, 2020
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.

5 participants
0