fix a regression in the previous commit for tab complete

Reported by Santtu Lakkala <inz@inz.fi>, thanks!
main
Hiltjo Posthuma 2022-09-02 19:09:50 +02:00 committed by Chewing_Bever
parent 2960a6644f
commit 4717a35cfb
Signed by: Jef Roosens
GPG Key ID: B75D4F293C7052DB
1 changed files with 1 additions and 1 deletions

View File

@ -607,7 +607,7 @@ insert:
return; return;
cursor = strnlen(sel->text, sizeof text - 1); cursor = strnlen(sel->text, sizeof text - 1);
memcpy(text, sel->text, cursor); memcpy(text, sel->text, cursor);
text[sizeof text - 1] = '\0'; text[cursor] = '\0';
match(); match();
break; break;
} }