Skip to content

Commit

Permalink
TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
d-e-s-o committed Apr 29, 2024
1 parent 9b3c3e4 commit 2eae739
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ui/term_renderer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ where

/// Align string centrally in the given `width` or cut it off if it is too long.
fn align_center(string: impl Into<String>, width: usize) -> String {
// TODO: NEEDS TO USE CLIP FUNCTION!
let mut string = string.into();
let length = string.len();

Expand Down Expand Up @@ -158,6 +159,7 @@ where
}

/// Write a string to the terminal.
// TODO: This function should probably return a [`Width`] object.
fn write<S>(&self, x: u16, y: u16, fg: Color, bg: Color, string: S) -> Result<()>
where
S: AsRef<str>,
Expand Down Expand Up @@ -537,6 +539,7 @@ where

/// Fill a line of the tag dialog.
fn fill_tag_dialog_line(&self, x: u16, y: u16, w: u16) -> Result<()> {
// TODO: Width specification seems broken. Should be `x+w`.
(x..w).try_for_each(|x| {
self.writer.write(
x,
Expand Down

0 comments on commit 2eae739

Please sign in to comment.