diff -Naur mc-4.7.0-pre1~/src/widget.c mc-4.7.0-pre1/src/widget.c
old
|
new
|
|
1325 | 1325 | { |
1326 | 1326 | const char *p = in->buffer + str_offset_to_pos (in->buffer, in->point); |
1327 | 1327 | |
1328 | | while ((p != in->buffer) && (p[0] == '\0')) { |
1329 | | p--; |
1330 | | in->point--; |
1331 | | } |
1332 | | |
1333 | | while ((p != in->buffer) && (str_isspace (p) || str_ispunct (p))) { |
| 1328 | while ((p > in->buffer) && (str_isspace (p - 1) || str_ispunct (p - 1))) { |
1334 | 1329 | str_cprev_char (&p); |
1335 | 1330 | in->point--; |
1336 | 1331 | } |
1337 | | while ((p != in->buffer) && !str_isspace (p) && !str_ispunct (p)) { |
| 1332 | while ((p > in->buffer) && !str_isspace (p - 1) && !str_ispunct (p - 1)) { |
1338 | 1333 | str_cprev_char (&p); |
1339 | 1334 | in->point--; |
1340 | 1335 | } |