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){
|
if(k == Kleft){
|
||||||
for(i = 0; i < n; i += l){
|
for(i = 0; i < n; i += l){
|
||||||
l = chartorune(&k, buf+tick);
|
l = chartorune(&k, buf+i);
|
||||||
if(i+l >= tick){
|
if(i+l >= tick){
|
||||||
tick = i;
|
tick = i;
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -151,7 +151,7 @@ nodraw:
|
||||||
}
|
}
|
||||||
if(k == Kleft){
|
if(k == Kleft){
|
||||||
for(i = 0; i < n; i += l){
|
for(i = 0; i < n; i += l){
|
||||||
l = chartorune(&k, buf+tick);
|
l = chartorune(&k, buf+i);
|
||||||
if(i+l >= tick){
|
if(i+l >= tick){
|
||||||
tick = i;
|
tick = i;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue