Commit d48f3e5e authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

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.
parent b18e76d4
Showing with 1 addition and 1 deletion
+1 -1
......@@ -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 */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment