libdraw: enter/eenter: fix Kleft for non-ascii text
This commit is contained in:
parent
49220af76e
commit
e0bfd148e2
2 changed files with 2 additions and 2 deletions
|
@ -143,7 +143,7 @@ nodraw:
|
|||
}
|
||||
if(k == Kleft){
|
||||
for(i = 0; i < n; i += l){
|
||||
l = chartorune(&k, buf+tick);
|
||||
l = chartorune(&k, buf+i);
|
||||
if(i+l >= tick){
|
||||
tick = i;
|
||||
break;
|
||||
|
|
|
@ -151,7 +151,7 @@ nodraw:
|
|||
}
|
||||
if(k == Kleft){
|
||||
for(i = 0; i < n; i += l){
|
||||
l = chartorune(&k, buf+tick);
|
||||
l = chartorune(&k, buf+i);
|
||||
if(i+l >= tick){
|
||||
tick = i;
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue