From 2b79ee0005cac6cd8fc4219a3f3b7cb071054ef4 Mon Sep 17 00:00:00 2001 From: a-kenji Date: Wed, 9 Aug 2023 01:41:58 +0200 Subject: [PATCH] fixup!: use the correct Spans --- src/ui/line/item.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/line/item.rs b/src/ui/line/item.rs index 44ed80a..ae50b4b 100644 --- a/src/ui/line/item.rs +++ b/src/ui/line/item.rs @@ -426,7 +426,7 @@ impl Item { let mut chars = vec![]; for ch in span.content.chars() { // NOTE: all control characters (except "\n") should have been removed via the `Printable` trait - // and "\n" should have been removed when building Line from the item + // and "\n" should have been removed when building Spans from the item let char_width = ch.width().expect( "encountered unexpected control character while wrapping lines", );