console/libgnt/test/tv.c

changeset 14962
abfaa2e03ac7
parent 14855
84c869823944
child 15826
273b7247786b
--- a/console/libgnt/test/tv.c	Sun Nov 05 14:57:05 2006 +0000
+++ b/console/libgnt/test/tv.c	Sun Nov 05 17:28:33 2006 +0000
@@ -25,9 +25,9 @@
 	}
 	else if (key[0] == 27)
 	{
-		if (strcmp(key+1, GNT_KEY_UP) == 0)
+		if (strcmp(key, GNT_KEY_UP) == 0)
 			gnt_text_view_scroll(GNT_TEXT_VIEW(view), -1);
-		else if (strcmp(key+1, GNT_KEY_DOWN) == 0)
+		else if (strcmp(key, GNT_KEY_DOWN) == 0)
 			gnt_text_view_scroll(GNT_TEXT_VIEW(view), 1);
 		else
 			return FALSE;

mercurial