Repository navigation
fix: a wide direct target breaks before its port - #57
Merged
Merged
Conversation
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.
Purpose
Task 31, found in the 0.4.0 release check: in the details, a direct machine's
connectvalue wider than its row was cut at the row's edge, which could split the port.studio@studio-box.example.com:2222showed:222then2at 80x24 and:22then22at 60x20, where the first row reads as another port. The value now breaks before its port. C was never affected: it always used the whole port.test: a wide direct target breaks before its porttests/test_connect_wrap.py, failing:wrap_target's cases, and the drawn rows at 80x24, 60x20, 120x30 and 40x16, with an exported machine, across a resize and after a status checkfix: a wide direct target breaks before its portwrap_targetandConnectValueinapp.py;wrap_url's loop moves into a shared_wrap_at, behavior unchangeddocs: the connect value's break rule and its Ghostty checkdocs: Task 31 to Done with its PR numbertest:andfix:after the review:7334;ConnectValue.get_content_heightreturns 0 at width 0; tests for the exact-width row and for a check that finds a wide address; one new property test's expectation corrected in its own commitdocs: the break after an IPv6 colon; clearer validation wordingAcceptance
@; else at the last place in the address that fits, before a.or-or after a:that no:follows (so no row of an IPv6 address starts with a colon, like a port); else at the row's edge. The port stays whole on any row that can hold it#machine-connect) is still one line, so every existing test of it holds unchanged; targets that fit and alias values are drawn as beforeChecks
ruff check,ruff format --check,pytest(1493 passed: 1458 and the 35 new),uv buildandcheck_package.pypassdocs/validation.md): 80x24, 60x20, 120x30 and an exported machine at 80x24What remains untested: Windows Terminal (the change is to how one value is drawn, not to the terminal handoff, key handling or the key-install script); in a real terminal, a long user name, a host name longer than the row and an IPv6 address, which headless tests cover, the break after an IPv6 colon included; 40x16 in a real terminal.
Docs
connectrow's break rule