diff options
| author | Jens Arnold <amiconn@rockbox.org> | 2005-02-08 08:24:36 +0000 |
|---|---|---|
| committer | Jens Arnold <amiconn@rockbox.org> | 2005-02-08 08:24:36 +0000 |
| commit | 3842dc3a724a643db732e22a4f0e74a373b7bac4 (patch) | |
| tree | 882aa823ff111dfe6c94ce4b46c5168529b0cb04 | |
| parent | c34869023a9c972752af30ad658e4d2b2217b5f6 (diff) | |
| download | rockbox-3842dc3a724a643db732e22a4f0e74a373b7bac4.zip rockbox-3842dc3a724a643db732e22a4f0e74a373b7bac4.tar.gz rockbox-3842dc3a724a643db732e22a4f0e74a373b7bac4.tar.bz2 rockbox-3842dc3a724a643db732e22a4f0e74a373b7bac4.tar.xz | |
A bit more elegant cursor position handling.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5851 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | apps/player/keyboard.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/player/keyboard.c b/apps/player/keyboard.c index 76f64fb..6467ed6 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; |