Commit Graph

8 Commits (26efba0dc3eda2597be06fbe7aa351c6b8398f3f)

Author SHA1 Message Date
Caleb Larsen 26efba0dc3 fix: Make `Table` `Cell`s set the style of their text
`helix_tui::widgets::Cell` contains styled `Text`. In the case of a
styled `Cell` with styled `Text`, the styled `Text` would override the
style of the `Cell`. This led to errors where it seemed
`ui.text.directory` had more priority than `ui.menu.selected` and
`ui.text.focus`. This change also adds some tests from doc comments of
`Text` and makes them actually tested.

Closes: #13768
2025-06-23 20:43:59 -05:00
Blaž Hrastnik dfcd814389 tui: Constify functions, shrink Margin representation 2024-05-21 04:34:36 +09:00
Mo 00653c772e
Avoid cloning the whole paragraph content just for rendering (#9739)
* Avoid cloning the whole paragraph content just for rendering

* Fix tests
2024-02-27 18:24:05 +01:00
A-Walrus c4d7cde6c8
Allow the area to be bigger than u16 (width and height remain u16) (#4318)
Now the editor can fill **very** large terminals.
Changed/removed tests which check the truncating behaviour.
2022-10-26 12:00:13 +09:00
chunghha 3a398eec56
fix typos (#2304) 2022-04-27 14:21:20 -05:00
Ivan Tham 3280510d5b Fix unused import 2021-06-06 21:30:18 +09:00
Blaž Hrastnik e541a75630 tui: Disable tests for now. 2021-05-10 17:30:06 +09:00
Blaž Hrastnik 35606a3daa Inline tui as helix-tui fork.
We only rely on some of the rendering primitives and implement our
Cursive-style compositor on top.
2021-05-09 17:52:55 +09:00