Repository navigation
fix display-modes.py and change type - #433
Merged
Merged
Conversation
this bugfixes #431 to just check whether it is string or bool in the example bin/display-modes.py program. We also no longer set it to 'True', or use booleans at all, just empty string instead. In the case that it is not uniquely identified the logic is shuffled a small bit and more detail is added about the 'TERM=xterm' special case.
It really doesn't matter, using 'or True' or not. But then we must include some exercising test, which is given, and I document it there
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #433 +/- ##
==========================================
+ Coverage 97.74% 97.76% +0.02%
==========================================
Files 13 13
Lines 4118 4118
Branches 696 697 +1
==========================================
+ Hits 4025 4026 +1
+ Misses 71 70 -1
Partials 22 22 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.
This bugfixes #431 to just check whether it is string or bool in the example bin/display-modes.py program.
Also no longer set term_program 'True', just empty string for "unidentifiable", which is also rare, like an unset
TERM=. The logic is shuffled a small bit and more detail is added about the 'TERM=xterm' special case.Continue to send possible True boolean to wcwidth API,
(self.term_program or True), and explain why, its a weak argument but it hardly makes a difference, since I am a maintainer of both repositories, I really rather have it this way as a demonstration of how the wcwidth API works.Closes #431