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.3.5
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.4.0
Choose a head ref
  • 2 commits
  • 9 files changed
  • 1 contributor

Commits on Jan 26, 2026

  1. Bugfix: OSC Hyperlinks should not be broken by wrap() (#191)

    Treat OSC hyperlinks as "word boundaries" for wrap.
    
    OSC hyperlinks are interesting, [we can also give them "ids",](https://contour-terminal.org/vt-extensions/clickable-links/) and, it should be possible to break hyperlinks among multiple lines, by terminating and re-emiting hyperlink at the next line with the same ID. When implemented correctly, both lines would give clickable "hover" effect.  I might submit such a PR later.
    
    In practice OSC hyperlinks are rarely used. They are a bit of a security issue for terminals the same as for web browsers, requiring more careful parsing and UX hints to prevent deceptive clickjacking and misleading urls.  Most have opted to allow hyperlinks printed plainly as clickable instead, which poses no security risk as its obvious what the url is before clicking.
    jquast authored Jan 26, 2026
    Configuration menu
    Copy the full SHA
    b1cdbdf View commit details
    Browse the repository at this point in the history
  2. New functions: iter_graphemes_reverse(), grapheme_boundary_before() (#…

    …192)
    
    As I audit and integrate with dependent libraries, in [urwid](https://github.com/urwid/urwid/) I find the need to help "move the cursor left" and look backwards from a location in a string to the previous boundary, while looking forward using ``iter_graphemes()``.
    
    Looking backwards is provided by new function ``grapheme_boundary_before()``.
    
    The more obvious function, ``iter_graphemes_reverse()`` is provided (though not useful to urwid). @penguinolog
    jquast authored Jan 26, 2026
    Configuration menu
    Copy the full SHA
    b297eaf View commit details
    Browse the repository at this point in the history
Loading