mirror of
https://github.com/0intro/wmii
synced 2024-11-23 06:11:21 +03:00
fixed single char selection
This commit is contained in:
parent
6de57e1202
commit
1821c3c3e5
@ -70,14 +70,17 @@ blitz_draw_input(BlitzInput *i)
|
||||
yoff = i->rect.y + (i->rect.height - h) / 2 + i->font->ascent;
|
||||
xcursor = xoff = i->rect.x + i->rect.height / 2;
|
||||
|
||||
start = end = nil;
|
||||
if(i->curstart && i->curend && i->curstart < i->curend) {
|
||||
start = i->curstart;
|
||||
end = i->curend;
|
||||
}
|
||||
else {
|
||||
start = i->curend;
|
||||
end = i->curstart;
|
||||
start = i->curstart;
|
||||
end = i->curend;
|
||||
if(i->curstart && i->curend) {
|
||||
if(i->curstart < i->curend) {
|
||||
start = i->curstart;
|
||||
end = i->curend;
|
||||
}
|
||||
else {
|
||||
start = i->curend;
|
||||
end = i->curstart;
|
||||
}
|
||||
}
|
||||
|
||||
/* draw normal text */
|
||||
|
Loading…
Reference in New Issue
Block a user