-
Notifications
You must be signed in to change notification settings - Fork 14
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: pretty print with suffix xclip or yclip #63
base: master
Are you sure you want to change the base?
Conversation
Co-authored-by: slyo <[email protected]>
Pull Request Test Coverage Report for Build 5550351717
💛 - Coveralls |
@@ -259,7 +259,7 @@ impl Alignment { | |||
y_pretty.push('-'); | |||
} | |||
AlignmentOperation::Xclip(len) => { | |||
for k in x.iter().take(len) { | |||
for k in x.iter().skip(x_i).take(len) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure this doesn't break non-Custom Alignment
s? Or maybe to be clearer, is there either (i) a test case that also covers this for for some non-custom Alignment
? I could imagine, that the special casing further up is the actual problem? But you dug into this code in more detail, so are probably more confident in answering those question.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the delay- I'll need more time to flesh out the test cases so feel free to move ahead with the release
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a quick ping to see if there is any planned activity, here. If so, feel free to update the branch, first.
Closes #47.
Thanks @kwuiee, what you identified definitely looks like a bug to me. When running your test:
on the existing code it fails, producing the following output:
Clearly there is a bug because the
left
sequence is wrong (terminal T where it should be C).I've incorporated your test and fix in this PR.