diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/plugins/viewer.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/plugins/viewer.c b/apps/plugins/viewer.c index 2c543edeeb..615ed41b86 100644 --- a/apps/plugins/viewer.c +++ b/apps/plugins/viewer.c | |||
@@ -376,8 +376,11 @@ static unsigned char* find_last_space(const unsigned char* p, int size) | |||
376 | 376 | ||
377 | for (i=size-1; i>=0; i--) | 377 | for (i=size-1; i>=0; i--) |
378 | for (j=k; j < (int) sizeof(line_break); j++) | 378 | for (j=k; j < (int) sizeof(line_break); j++) |
379 | if (p[i] == line_break[j]) | 379 | { |
380 | return (unsigned char*) p+i; | 380 | if (((p[i] != '-') && (prefs.word_mode != WRAP))) |
381 | if (p[i] == line_break[j]) | ||
382 | return (unsigned char*) p+i; | ||
383 | } | ||
381 | 384 | ||
382 | return NULL; | 385 | return NULL; |
383 | } | 386 | } |