diff options
| author | Jonathan Gordon <rockbox@jdgordon.info> | 2007-08-05 04:16:21 +0000 |
|---|---|---|
| committer | Jonathan Gordon <rockbox@jdgordon.info> | 2007-08-05 04:16:21 +0000 |
| commit | 739f0ecd9490d2b59f29c27df520269968a3b956 (patch) | |
| tree | db2ad8074c8b5de2441878e8c6e27e633363d873 /apps/plugins | |
| parent | 7c54ad647bcb07fa0f449c56b0a63e66f973ad73 (diff) | |
| download | rockbox-739f0ecd9490d2b59f29c27df520269968a3b956.zip rockbox-739f0ecd9490d2b59f29c27df520269968a3b956.tar.gz rockbox-739f0ecd9490d2b59f29c27df520269968a3b956.tar.bz2 rockbox-739f0ecd9490d2b59f29c27df520269968a3b956.tar.xz | |
quick fix for FS#6007 (the first point, where a long line with a - would stop the rest of the file being viewed if your in narrow line mode)
fix could probably be done better, but better this than the bug.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14187 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins')
| -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 2c543ed..615ed41 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) for (i=size-1; i>=0; i--) for (j=k; j < (int) sizeof(line_break); j++) - if (p[i] == line_break[j]) - return (unsigned char*) p+i; + { + if (((p[i] != '-') && (prefs.word_mode != WRAP))) + if (p[i] == line_break[j]) + return (unsigned char*) p+i; + } return NULL; } |