string more accurately
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3179
35c25a1d-7b9e-4130-9fde-
d3aeb78583b8
character as having the width of Unicode U+FFFD (Replacement
Character) instead of having a width of zero, since display
problems can crop up with the latter approach. (DLR)
+ mbstrchr()
+ - Detect the case where the character isn't found in the string
+ more accurately. (DLR)
- cut.c:
cut_line()
- Since placewewant will always be zero after the line is cut,
free(s_mb);
- if (ws != wc)
+ if (*s == '\0')
q = NULL;
return (char *)q;