git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_2_4_branch@5417
35c25a1d-7b9e-4130-9fde-
d3aeb78583b8
+2015-08-14 Benno Schulenberg <bensberg@justemail.net>
+ * src/help.c (help_line_len): The wrap location can be beyond the EOL,
+ so for determining the length of the current line, don't start at that
+ location but at the beginning. This fixes Savannah bug #45770.
+
2015-08-13 Benno Schulenberg <bensberg@justemail.net>
* src/search.c (do_find_bracket): Remove mistaken comparison between
pointer and literal character. Found with cppcheck.
size_t retval = (wrap_loc < 0) ? 0 : wrap_loc;
size_t retval_save = retval;
+ retval = 0;
+
/* Get the length of the entire line up to a null or a newline. */
while (*(ptr + retval) != '\0' && *(ptr + retval) != '\n')
retval += move_mbright(ptr + retval, 0);