changeset 24918:06ab3599f0db

Fix rebinding the arrow keys and tab.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Wed, 07 Jan 2009 15:57:08 +0000
parents c0255d214741
children fe5179d40a51 62de30e69768 72165febf9fd e33aee62e537
files ChangeLog finch/libgnt/gntkeys.c
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Wed Jan 07 13:29:49 2009 +0000
+++ b/ChangeLog	Wed Jan 07 15:57:08 2009 +0000
@@ -24,6 +24,7 @@
 
 	Finch:
 	* Redirect stderr outputs to the debug window.
+	* Fix rebinding actions with the arrow-keys and tab.
 
 version 2.5.3 (12/20/2008):
 	libpurple:
--- a/finch/libgnt/gntkeys.c	Wed Jan 07 13:29:49 2009 +0000
+++ b/finch/libgnt/gntkeys.c	Wed Jan 07 15:57:08 2009 +0000
@@ -131,7 +131,7 @@
 				code[ind] = (c ? 1 : 'a') + ch;
 				INSERT_COMB(str, code);
 			}
-			if (c == 0) {
+			if (c == 0 && a) {
 				INSERT_COMB("tab", "\033\t");
 				INSERT_COMB_CODE("up", "\033", GNT_KEY_UP);
 				INSERT_COMB_CODE("down", "\033", GNT_KEY_DOWN);