summaryrefslogtreecommitdiffstats
path: root/src/layout.rs
diff options
context:
space:
mode:
authorKyohei Uto <kyoheiu@outlook.com>2022-10-15 05:08:18 +0900
committerKyohei Uto <kyoheiu@outlook.com>2022-10-15 05:08:18 +0900
commite087cb1fb3eb037eeef29a1d24475d7a0fe0b2c4 (patch)
treef14a21d1240d6fefca15692e56e76b3367c3285f /src/layout.rs
parent06d260ab38530ed85ad410dec0fe0b39509349f2 (diff)
Refactor print: Remove macro, everything in print method
Diffstat (limited to 'src/layout.rs')
-rw-r--r--src/layout.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/layout.rs b/src/layout.rs
index 4d4bee5..4db107c 100644
--- a/src/layout.rs
+++ b/src/layout.rs
@@ -120,7 +120,7 @@ impl Layout {
//Print preview (wrapping)
for (i, line) in content.iter().enumerate() {
move_to(self.preview_start_column, BEGINNING_ROW + i as u16);
- set_color(TermColor::ForeGround(Colorname::LightBlack));
+ set_color(&TermColor::ForeGround(&Colorname::LightBlack));
print!("{}", line);
reset_color();
if BEGINNING_ROW + i as u16 == self.terminal_row - 1 {