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:
parent
7c54ad647b
commit
739f0ecd94
1 changed files with 5 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue