diff --git a/[refs] b/[refs] index 1e8525015cb4..1f4d44c6a62e 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 1af4791552e462b37d0174407dc3173917e35ea0 +refs/heads/master: 87be424a9a4be41df26b25b3360969211cedd5d1 diff --git a/trunk/drivers/staging/speakup/keyhelp.c b/trunk/drivers/staging/speakup/keyhelp.c index 236f06d35ca6..23cf7f44f450 100644 --- a/trunk/drivers/staging/speakup/keyhelp.c +++ b/trunk/drivers/staging/speakup/keyhelp.c @@ -161,7 +161,9 @@ int handle_help(struct vc_data *vc, u_char type, u_char ch, u_short key) } cur_item = letter_offsets[ch-'a']; } else if (type == KT_CUR) { - if (ch == 0 && (cur_item + 1) <= MSG_FUNCNAMES_END) + if (ch == 0 + && (MSG_FUNCNAMES_START + cur_item + 1) <= + MSG_FUNCNAMES_END) cur_item++; else if (ch == 3 && cur_item > 0) cur_item--;