summaryrefslogtreecommitdiffstats
path: root/melib/src/grapheme_clusters.rs
diff options
context:
space:
mode:
Diffstat (limited to 'melib/src/grapheme_clusters.rs')
-rw-r--r--melib/src/grapheme_clusters.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/melib/src/grapheme_clusters.rs b/melib/src/grapheme_clusters.rs
index 06e9ae41..80887ca6 100644
--- a/melib/src/grapheme_clusters.rs
+++ b/melib/src/grapheme_clusters.rs
@@ -31,7 +31,7 @@ pub trait Graphemes: UnicodeSegmentation + CodePointsIter {
fn grapheme_width(&self) -> usize {
let mut count = 0;
for c in self.code_points() {
- count += if let Some(c) = wcwidth(c) { c } else { 0 };
+ count += if let Some(w) = wcwidth(c) { w } else { 0 };
}
count