mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05:00
LCS: fix emission of last range starting at index 0.
This commit is contained in:
parent
b3400559be
commit
c9c03c3ee6
@ -595,7 +595,6 @@ void lcsCommand(client *c) {
|
|||||||
arange_end = i-1;
|
arange_end = i-1;
|
||||||
brange_start = j-1;
|
brange_start = j-1;
|
||||||
brange_end = j-1;
|
brange_end = j-1;
|
||||||
if (i == 0 || j == 0) emit_range = 1;
|
|
||||||
} else {
|
} else {
|
||||||
/* Let's see if we can extend the range backward since
|
/* Let's see if we can extend the range backward since
|
||||||
* it is contiguous. */
|
* it is contiguous. */
|
||||||
@ -606,6 +605,7 @@ void lcsCommand(client *c) {
|
|||||||
emit_range = 1;
|
emit_range = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (arange_start == 0 || brange_start == 0) emit_range = 1;
|
||||||
|
|
||||||
/* Emit the current range if needed. */
|
/* Emit the current range if needed. */
|
||||||
if (emit_range) {
|
if (emit_range) {
|
||||||
|
Loading…
Reference in New Issue
Block a user