bubbles/viewport
Raphael 'kena' Poss 278edd1c2b
fix(viewport): properly truncate to size (#228)
There are many "interesting" cases:

- logical content is wider than display width (long lines).
  In this case, we truncate.
- logical content is smaller than display height (fewer lines
  than visible).
  In this case, we pad with empty lines up to the specified height.
- logical content is higher than display height (more lines than
  visible).
  In this case, we truncate.

- style specifies a width wider than the display width.
  In this case, we ignore the style width and
  fit in the display width.
- style specifies a height higher than the display height.
  Same as width, we ignore the style and fit in the display height.
- style specifies a narrower width or smaller height than the display.
  In this case we obey the style.
2022-09-02 12:50:33 -07:00
..
keymap.go chore: shorten half page up/down help widths 2022-04-29 12:20:18 -04:00
viewport.go fix(viewport): properly truncate to size (#228) 2022-09-02 12:50:33 -07:00