From e217a3fd8e5af449e2305aaf78723ff25b8fcbc2 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Mon, 18 Feb 2008 18:22:29 +0000 Subject: fixed off-by-one bug on key_right --- src/client/console.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/client') diff --git a/src/client/console.cc b/src/client/console.cc index 5fb382e..492d909 100644 --- a/src/client/console.cc +++ b/src/client/console.cc @@ -257,7 +257,7 @@ void keypressed(const SDL_keysym &keysym) break; case SDLK_KP6: case SDLK_RIGHT: - if (input_pos <= (*history_pos).size()) + if (input_pos < (*history_pos).size()) input_pos++; break; case SDLK_BACKSPACE: -- cgit v1.2.3