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
parent
b18e76d4d8
commit
d48f3e5e7b
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue