*really* fix the previous break_line() problem
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3024 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
bdc1b9b568
commit
ca37ee67d9
|
@ -575,10 +575,9 @@ ssize_t break_line(const char *line, ssize_t goal, bool newline)
|
|||
assert(line != NULL);
|
||||
|
||||
while (*line != '\0' && goal >= 0) {
|
||||
int pos;
|
||||
size_t pos = 0;
|
||||
|
||||
line_len = parse_mbchar(line, NULL, NULL);
|
||||
pos = mbwidth(line);
|
||||
line_len = parse_mbchar(line, NULL, &pos);
|
||||
|
||||
if (is_blank_mbchar(line) || (newline && *line == '\n')) {
|
||||
blank_loc = cur_loc;
|
||||
|
|
Loading…
Reference in New Issue