diff options
| author | João Távora | 2026-02-08 01:35:52 +0000 |
|---|---|---|
| committer | João Távora | 2026-02-08 01:35:52 +0000 |
| commit | d1ef30828f8fa4afcffd4e812750c9d6a600b638 (patch) | |
| tree | 1a5a64c6fbb4a3b391d4ea0cd50056f91a202ab4 /src/minibuf.c | |
| parent | a0b5ff9bb79681279a351de47d379f247e14424d (diff) | |
| download | emacs-feature/newflex2.tar.gz emacs-feature/newflex2.zip | |
Fix highlighting bugfeature/newflex2
* src/minibuf.c (Fcompletion__flex_cost_gotoh):
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 | ||