diff options
Diffstat (limited to 'src/minibuf.c')
| -rw-r--r-- | src/minibuf.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/minibuf.c b/src/minibuf.c index 162738bacda..7b34a307976 100644 --- a/src/minibuf.c +++ b/src/minibuf.c | |||
| @@ -2450,10 +2450,9 @@ positions in STR. */) | |||
| 2450 | 2450 | ||
| 2451 | /* Go backwards to build match positions list. */ | 2451 | /* Go backwards to build match positions list. */ |
| 2452 | Lisp_Object matches = Fcons (make_fixnum (lastcol), Qnil); | 2452 | Lisp_Object matches = Fcons (make_fixnum (lastcol), Qnil); |
| 2453 | for (int i = patlen - 2, l = lastcol - 1; i >= 0; --i) | 2453 | for (int i = patlen - 2, l = lastcol; i >= 0; --i) |
| 2454 | { | 2454 | { |
| 2455 | while (l >= 0 && MAT (M, i, l) > MAT (D, i, l)) | 2455 | do --l; while (l >= 0 && MAT (M, i, l) >= MAT (D, i, l)); |
| 2456 | --l; | ||
| 2457 | matches = Fcons (make_fixnum (l), matches); | 2456 | matches = Fcons (make_fixnum (l), matches); |
| 2458 | } | 2457 | } |
| 2459 | 2458 | ||