From 9d17c1fddf1309a8d7567ec69322e1bdb5ff48f4 Mon Sep 17 00:00:00 2001 From: Terts Diepraam Date: Sat, 29 May 2021 12:45:12 +0200 Subject: [PATCH] more: add todo for unicode width --- src/uu/more/src/more.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/uu/more/src/more.rs b/src/uu/more/src/more.rs index c6d1c6b40..b30c15fdd 100644 --- a/src/uu/more/src/more.rs +++ b/src/uu/more/src/more.rs @@ -316,6 +316,7 @@ fn break_buff(buff: &str, cols: usize) -> Vec { fn break_line(mut line: &str, cols: usize) -> Vec { let breaks = (line.len() / cols).saturating_add(1); let mut lines = Vec::with_capacity(breaks); + // TODO: Use unicode width instead of the length in bytes. if line.len() < cols { lines.push(line.to_string()); return lines;