Merge pull request #1106 from KlzXS/persistent_selection

Use selbufpos instead of selbuflen
This commit is contained in:
Terminator X 2021-07-11 23:58:58 +05:30 committed by GitHub
commit e94ac0b91b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1540,7 +1540,7 @@ static char *findinsel(char *startpos, int len)
startpos = pselbuf;
char *found = startpos;
size_t buflen = selbuflen - (startpos - pselbuf);
size_t buflen = selbufpos - (startpos - pselbuf);
while (1) {
/*