aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/gdisp/mcufont/mf_wordwrap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gdisp/mcufont/mf_wordwrap.c b/src/gdisp/mcufont/mf_wordwrap.c
index 4c563c3f..d89b567d 100644
--- a/src/gdisp/mcufont/mf_wordwrap.c
+++ b/src/gdisp/mcufont/mf_wordwrap.c
@@ -52,6 +52,8 @@ static bool get_wordlen(const struct mf_font_s *font, mf_str *text,
if (c == ' ')
result->space += mf_character_width(font, c);
+ else if (c == '-')
+ result->space += mf_character_width(font, '-');
else if (c == '\t')
result->space += mf_character_width(font, 'm') * MF_TABSIZE;
else if (c == '\n')