help: don't get stuck when there is an unwrappable piece of text

When a fragment of help text does not contain any whitespace that
we can wrap at, just advance the pointer, because returning zero
would mean we stay forever at the same place: nano would hang.
master
Benno Schulenberg 2018-01-27 20:59:40 +01:00
parent b18e76d4d8
commit d48f3e5e7b
1 changed files with 1 additions and 1 deletions

View File

@ -620,7 +620,7 @@ size_t help_line_len(const char *ptr)
else if (wrap_location > 0)
return wrap_location;
else
return 0;
return 1;
}
#endif /* ENABLE_HELP */