Skip to content

Commit

Permalink
Don't consider punctuation in text delay
Browse files Browse the repository at this point in the history
  • Loading branch information
jblang committed May 11, 2019
1 parent b098141 commit 8bb0497
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui-hlp/ui_helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -1131,7 +1131,7 @@ uih_text (uih_context * c, const char *text)
l = (int) strlen (text);
c->todisplayletters = 0;
for (i = 0; i < l; i++) {
if (!isspace (text[i]))
if (!isspace(text[i]) && !ispunct(text[i]))
c->todisplayletters++;
if (text[i] == '-')
c->todisplayletters += 3;
Expand Down

0 comments on commit 8bb0497

Please sign in to comment.