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
parent
6c09504040
commit
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 (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 */
|
||||
|
||||
|
|
Loading…
Reference in New Issue