Commit 2e0e409
committed
Further cleanup of ts_headline code.
Suppress a probably-meaningless uninitialized-variable warning
(induced by my previous patch, I'm sorry to say).
Improve mark_hl_fragments()'s test for overlapping cover strings:
it failed to consider the possibility that the current string is
strictly within another one. That's unlikely given the preceding
splitting into MaxWords fragments, but I don't think it's impossible.
Discussion: https://postgr.es/m/16345-2e0cf5cddbdcd3b4@postgresql.org1 parent a4d4f59 commit 2e0e409
1 file changed
+10
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2337 | 2337 | | |
2338 | 2338 | | |
2339 | 2339 | | |
2340 | | - | |
| 2340 | + | |
2341 | 2341 | | |
2342 | 2342 | | |
2343 | 2343 | | |
2344 | | - | |
2345 | | - | |
2346 | | - | |
2347 | | - | |
| 2344 | + | |
| 2345 | + | |
| 2346 | + | |
| 2347 | + | |
| 2348 | + | |
| 2349 | + | |
2348 | 2350 | | |
2349 | 2351 | | |
2350 | 2352 | | |
2351 | 2353 | | |
2352 | | - | |
| 2354 | + | |
2353 | 2355 | | |
2354 | 2356 | | |
2355 | | - | |
| 2357 | + | |
2356 | 2358 | | |
2357 | 2359 | | |
2358 | 2360 | | |
| |||
2510 | 2512 | | |
2511 | 2513 | | |
2512 | 2514 | | |
| 2515 | + | |
2513 | 2516 | | |
2514 | 2517 | | |
2515 | 2518 | | |
| |||
0 commit comments