wmii

git clone git://oldgit.suckless.org/wmii/
Log | Files | Refs | README | LICENSE

commit 1821c3c3e51f6eb38f4d23d106348c79f31f6614
parent 6de57e1202899f185474b4e3506ffeec75ebcd7e
Author: Anselm R. Garbe <garbeam@wmii.de>
Date:   Fri, 30 Jun 2006 12:25:03 +0200

fixed single char selection


Diffstat:
liblitz/input.c | 19+++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)

diff --git a/liblitz/input.c b/liblitz/input.c @@ -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 */