diff options
Diffstat (limited to 'src/ui/ui_shared.c')
-rw-r--r-- | src/ui/ui_shared.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ui/ui_shared.c b/src/ui/ui_shared.c index 5daf33b7..02a45bf5 100644 --- a/src/ui/ui_shared.c +++ b/src/ui/ui_shared.c @@ -4351,7 +4351,8 @@ const char *Item_Text_Wrap( const char *text, float scale, float width ) if( !previousCharIsSpace && isspace( *q ) ) eol = q; - textWidth += UI_Char_Width( &q, scale ); + if( q != eos ) + textWidth += UI_Char_Width( &q, scale ); } // No split has taken place, so just split mid-word |