rio: properly handle initial wrap arround in wlook()

This commit is contained in:
cinap_lenrek 2014-01-11 10:46:07 +01:00
parent 7c503e6f49
commit 6a83facfb3

View file

@ -900,6 +900,9 @@ wlook(Window *w)
if(n <= 0 || e < n)
return;
if(i > e)
i = 0;
while(runestrncmp(w->r+w->q0, w->r+i, n) != 0){
if(i < e)
i++;