Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: jquast/wcwidth
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0.4.0
Choose a base ref
...
head repository: jquast/wcwidth
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 0.5.0
Choose a head ref
  • 6 commits
  • 17 files changed
  • 1 contributor

Commits on Jan 26, 2026

  1. Bugfix OSC Hyperlinks when broken mid-text by wrap() (#193)

    The previous change #191 treated the OSC hyperlink edges as unbreakable, but it still incorrectly broke an OSC hyperlink sequence in half if the hyperlink text also contained spaces.
    
    The most naive approach simply says "nothing ever breaks in a hyperlink", but that means any "long" hyperlink is entirely unbreakable and cannot be wrapped by a word margin, bleeding off the screen or other ill-effect.
    
    To break OSC is complicated. It is necessary to identify and preserve any existing 'id' parameter, or define and generate new unique ones, and to allow wrapping them by closing and re-emitting a new hyperlink sequence of the remaining text, of matching id, at the next line.
    jquast authored Jan 26, 2026
    Configuration menu
    Copy the full SHA
    7de2e9b View commit details
    Browse the repository at this point in the history
  2. Useful SGR Code Propagation (#194)

    From integration and study of downstream uses and needs, as documented in the primary new public API
    function, ``porpagate_sgr()``, there is a need to track, set, and reset SGR attributes at the
    boundaries of returned lines when using ``wrap()`` and ``clip()``:
    
    A related bug was discovered through extensive testing of "cafe" plus combining character,
    that the combining characters were accidentally included outside of clip boundary, confused
    with the zero-width nature of SGR codes
    jquast authored Jan 26, 2026
    Configuration menu
    Copy the full SHA
    70dd591 View commit details
    Browse the repository at this point in the history

Commits on Jan 27, 2026

  1. Remove all but latest unicode version (#195)

    Closes #190.
    
    By our cautious use of ``list_versions()`` and other public API's, safely ignore any ``unicode_version`` argument or ``UNICODE_VERSION`` environment variable. No such things are ever processed.
    
    A 20-30% performance boost is found by careful study of ``@lru_cache`` performance quirk, by careful construction of positional-only arguments, of fewest possible positions, in the common case.
    
    This "performance boost" would have worked with multiple version tables too, not necessarily related but a nice discovery made along the way.
    jquast authored Jan 27, 2026
    Configuration menu
    Copy the full SHA
    4ad63d0 View commit details
    Browse the repository at this point in the history
  2. Bump version for release

    jquast committed Jan 27, 2026
    Configuration menu
    Copy the full SHA
    05df2cf View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b2d3c69 View commit details
    Browse the repository at this point in the history
  4. some tiny punctuation fixes

    jquast committed Jan 27, 2026
    Configuration menu
    Copy the full SHA
    ed93a05 View commit details
    Browse the repository at this point in the history
Loading