aboutsummaryrefslogtreecommitdiffstats
path: root/AvailableColumnsPanel.c
diff options
context:
space:
mode:
authorDaniel Lange <DLange@git.local>2016-04-11 13:00:30 +0200
committerDaniel Lange <DLange@git.local>2016-04-11 13:00:30 +0200
commite2b58f0ab81b2aafeb8c29a69abad7829fa21ab3 (patch)
treec4e410dd878ceed9fc058d14bad8011b423212fe /AvailableColumnsPanel.c
parenteaf11cc12a1aa4b050a8a1e7ea3770d3d9c81e95 (diff)
downloaddebian_htop-e2b58f0ab81b2aafeb8c29a69abad7829fa21ab3.tar.gz
debian_htop-e2b58f0ab81b2aafeb8c29a69abad7829fa21ab3.tar.bz2
debian_htop-e2b58f0ab81b2aafeb8c29a69abad7829fa21ab3.zip
Imported Upstream version 1.0.1upstream/1.0.1
Diffstat (limited to 'AvailableColumnsPanel.c')
-rw-r--r--AvailableColumnsPanel.c20
1 files changed, 14 insertions, 6 deletions
diff --git a/AvailableColumnsPanel.c b/AvailableColumnsPanel.c
index c0b6af1..fce9880 100644
--- a/AvailableColumnsPanel.c
+++ b/AvailableColumnsPanel.c
@@ -1,16 +1,23 @@
+/*
+htop - AvailableColumnsPanel.c
+(C) 2004-2011 Hisham H. Muhammad
+Released under the GNU GPL, see the COPYING file
+in the source distribution for its full text.
+*/
#include "AvailableColumnsPanel.h"
-#include "Settings.h"
+
#include "Header.h"
-#include "ScreenManager.h"
#include "ColumnsPanel.h"
-#include "Panel.h"
-
-#include "debug.h"
#include <assert.h>
+#include <stdlib.h>
+#include <ctype.h>
/*{
+#include "Panel.h"
+#include "Settings.h"
+#include "ScreenManager.h"
typedef struct AvailableColumnsPanel_ {
Panel super;
@@ -48,7 +55,8 @@ static HandlerResult AvailableColumnsPanel_eventHandler(Panel* super, int ch) {
}
default:
{
- result = Panel_selectByTyping(super, ch);
+ if (isalpha(ch))
+ result = Panel_selectByTyping(super, ch);
break;
}
}

© 2014-2024 Faster IT GmbH | imprint | privacy policy