tweaks: remove a superfluous check

When break_line() is called with its last parameter set to TRUE
(meaning that it will break also at a newline) it will return a
value that is bigger than 1.  So it is pointless to ensure that
it is at least 1.
master
Benno Schulenberg 2019-12-22 19:18:28 +01:00
parent 6c09504040
commit 074cf40409
1 changed files with 1 additions and 3 deletions

View File

@ -596,10 +596,8 @@ size_t help_line_len(const char *ptr)
/* If the entire line will just fit the screen, don't wrap it. */
if (wideness(ptr, length) <= wrapping_point + 1)
return length;
else if (wrap_location > 0)
return wrap_location;
else
return 1;
return wrap_location;
}
#endif /* ENABLE_HELP */