]> granicus.if.org Git - nethack/commitdiff
debian bug #154629 followup
authorcohrs <cohrs>
Wed, 15 Oct 2003 06:47:22 +0000 (06:47 +0000)
committercohrs <cohrs>
Wed, 15 Oct 2003 06:47:22 +0000 (06:47 +0000)
further testing found a trivial bug

win/gnome/gnmenu.c

index 4462f40ed66507cecdceeaf07186b199375a74b7..d3fa6daa2581b6f7a16f7f9e4135401bd0dde3c4 100644 (file)
@@ -658,7 +658,7 @@ ghack_ext_key_hit(GtkWidget *menuWin, GdkEventKey *event, gpointer data)
     if (info->curItem >= 0) {
        for (i = info->curItem + 1; i < info->numRows; ++i) {
            if (!strncmp(extcmdlist[info->curItem].ef_txt,
-                        extcmdlist[i].ef_txt, info->charIdx-1)) {
+                        extcmdlist[i].ef_txt, info->charIdx)) {
                if (extcmdlist[i].ef_txt[info->charIdx] == c) {
                    ++info->charIdx;
                    info->curItem = i;