rio: properly handle initial wrap arround in wlook()
This commit is contained in:
parent
7c503e6f49
commit
6a83facfb3
1 changed files with 3 additions and 0 deletions
|
@ -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++;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue