Repository navigation
numfmt: only take a unit from the next field when converting this one - #17009
Open
seragAhmed wants to merge 1 commit into
Open
seragAhmed wants to merge 1 commit into
seragAhmed wants to merge 1 commit into
Conversation
With a blank --unit-separator, a field followed by a word that looks like a
suffix ("42 R") was merged with it even when the field was not selected,
which shifted the numbering of every later field.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
With
--unit-separator=' ', the whitespace splitter merged any field with a following suffix-like word, even when that field wasn't selected. In42 R 8192 2048the42 Rbecame one field, so--field=3converted the resident memory column instead of the virtual one.Now a field only takes the next word as its unit when it is one of the fields being converted, so unselected fields keep their numbering. Added a test with the rows from the issue.
Fixes #16999