1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Jonathan Gordon 2007-08-05 04:16:21 +00:00
parent 7c54ad647b
commit 739f0ecd94

View file

@ -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;
}