1
1

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.
Этот коммит содержится в:
Benno Schulenberg 2019-12-22 19:18:28 +01:00
родитель 6c09504040
Коммит 074cf40409

Просмотреть файл

@ -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 the entire line will just fit the screen, don't wrap it. */
if (wideness(ptr, length) <= wrapping_point + 1) if (wideness(ptr, length) <= wrapping_point + 1)
return length; return length;
else if (wrap_location > 0)
return wrap_location;
else else
return 1; return wrap_location;
} }
#endif /* ENABLE_HELP */ #endif /* ENABLE_HELP */