mirror of https://gitlab.com/basile.b/dexed.git
fix, option _textCompletionMinLength_ min length off-by-one.
This commit is contained in:
parent
d943bcfed2
commit
8a9ee73349
|
@ -1,3 +1,7 @@
|
||||||
|
# v3.9.16-dev
|
||||||
|
|
||||||
|
- editor, option _textCompletionMinLength_ min length off-by-one.
|
||||||
|
|
||||||
# v3.9.15
|
# v3.9.15
|
||||||
|
|
||||||
## Bugs fixed
|
## Bugs fixed
|
||||||
|
|
|
@ -2919,7 +2919,7 @@ begin
|
||||||
while not r.empty do
|
while not r.empty do
|
||||||
begin
|
begin
|
||||||
w := r.popUntil(c)^.takeWhile(c).yield;
|
w := r.popUntil(c)^.takeWhile(c).yield;
|
||||||
if (w.length > fTextCompletionMinLength) and not h.contains(w) then
|
if (w.length >= fTextCompletionMinLength) and not h.contains(w) then
|
||||||
begin
|
begin
|
||||||
h.insert(w);
|
h.insert(w);
|
||||||
fCompletion.ItemList.AddObject(w, TObject(PtrUint(dckText)));
|
fCompletion.ItemList.AddObject(w, TObject(PtrUint(dckText)));
|
||||||
|
|
Loading…
Reference in New Issue