diff -urpN mc-4.7.0-pre2.orig/src/widget.c mc-4.7.0-pre2/src/widget.c
old
|
new
|
backward_word (WInput *in) |
1395 | 1395 | in->point--; |
1396 | 1396 | } |
1397 | 1397 | |
1398 | | while ((p != in->buffer) && (str_isspace (p) || str_ispunct (p))) { |
| 1398 | while (p != in->buffer) { |
1399 | 1399 | str_cprev_char (&p); |
| 1400 | if (!str_isspace (p) && !str_ispunct (p)) { |
| 1401 | str_cnext_char (&p); |
| 1402 | break; |
| 1403 | } |
1400 | 1404 | in->point--; |
1401 | 1405 | } |
1402 | | while ((p != in->buffer) && !str_isspace (p) && !str_ispunct (p)) { |
| 1406 | while (p != in->buffer) { |
1403 | 1407 | str_cprev_char (&p); |
| 1408 | if (str_isspace (p) || str_ispunct (p)) { |
| 1409 | str_cnext_char (&p); |
| 1410 | break; |
| 1411 | } |
1404 | 1412 | in->point--; |
1405 | 1413 | } |
1406 | 1414 | } |