don't ignore the word_wrap option

This commit is contained in:
Sascha Kruse 2012-08-20 01:34:53 +02:00
parent 79dff42fe1
commit 8c0b27f323

View File

@ -365,6 +365,9 @@ void update_lists()
/* TODO get draw_txt_buf as argument */ /* TODO get draw_txt_buf as argument */
int do_word_wrap(char *source, int max_width) int do_word_wrap(char *source, int max_width)
{ {
if (!word_wrap)
return 1;
strtrim_end(source); strtrim_end(source);
if (!source || source == '\0' || strcmp(source, "") == 0) if (!source || source == '\0' || strcmp(source, "") == 0)
return 0; return 0;