From 3842dc3a724a643db732e22a4f0e74a373b7bac4 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Tue, 8 Feb 2005 08:24:36 +0000 Subject: A bit more elegant cursor position handling. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5851 a1c6a512-1295-4272-9138-f99709370657 --- apps/player/keyboard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps') diff --git a/apps/player/keyboard.c b/apps/player/keyboard.c index 76f64fbc88..6467ed60f1 100644 --- a/apps/player/keyboard.c +++ b/apps/player/keyboard.c @@ -140,7 +140,7 @@ int kbd_input(char* text, int buflen) lcd_puts(1, 0, temptext); /* write out the text */ - curpos = MIN(editpos, 9 - MIN(len - editpos, 2)); + curpos = MIN(MIN(editpos, 10 - MIN(len - editpos, 3)), 9); leftpos = editpos - curpos; strncpy(temptext, text + leftpos, 10); temptext[10] = 0; -- cgit v1.2.3