mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 03:36:41 +01:00
wip: big flat pt.10, down to 33
This commit is contained in:
parent
d01aa7481b
commit
a0175dabc8
17 changed files with 6 additions and 1362 deletions
|
|
@ -331,7 +331,7 @@ pub fn half_block (lower: bool, upper: bool) -> Option<char> {
|
|||
|
||||
//impl<T: Content<Tui>> Render<Tui> for T {}
|
||||
|
||||
impl Render<Tui> for str {
|
||||
impl Render<Tui> for &str {
|
||||
fn min_size (&self, _: [u16;2]) -> Perhaps<[u16;2]> {
|
||||
// TODO: line breaks
|
||||
Ok(Some([self.chars().count() as u16, 1]))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue