diff options
author | Daniel Lange <DLange@git.local> | 2016-04-11 13:00:30 +0200 |
---|---|---|
committer | Daniel Lange <DLange@git.local> | 2016-04-11 13:00:30 +0200 |
commit | e2b58f0ab81b2aafeb8c29a69abad7829fa21ab3 (patch) | |
tree | c4e410dd878ceed9fc058d14bad8011b423212fe /AvailableColumnsPanel.c | |
parent | eaf11cc12a1aa4b050a8a1e7ea3770d3d9c81e95 (diff) | |
download | debian_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.c | 20 |
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; } } |