summaryrefslogtreecommitdiffstats
path: root/Panel.c
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2013-02-26 16:50:21 +0000
committerHisham Muhammad <hisham@gobolinux.org>2013-02-26 16:50:21 +0000
commit43a72316157e98ad48dd6fd96f1a5d8d4de2f1a6 (patch)
treebf693a0acf9ec02349ec1f295a898150225a497b /Panel.c
parent8d5dd51cf21304675144fa7cb8788efcbcf8452d (diff)
Remove explicit calls to curses.h in other files
Diffstat (limited to 'Panel.c')
-rw-r--r--Panel.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Panel.c b/Panel.c
index 8a40ab61..70e84e20 100644
--- a/Panel.c
+++ b/Panel.c
@@ -18,7 +18,6 @@ in the source distribution for its full text.
#include <ctype.h>
#include <string.h>
#include <assert.h>
-#include <curses.h>
//#link curses
@@ -295,6 +294,7 @@ void Panel_draw(Panel* this, bool focus) {
for(int i = first, j = 0; j < this->h && i < last; i++, j++) {
Object* itemObj = Vector_get(this->items, i);
+ assert(itemObj); if(!itemObj) continue;
RichString_begin(item);
Object_display(itemObj, &item);
int itemLen = RichString_sizeVal(item);
@@ -319,6 +319,7 @@ void Panel_draw(Panel* this, bool focus) {
} else {
Object* oldObj = Vector_get(this->items, this->oldSelected);
+ assert(oldObj);
RichString_begin(old);
Object_display(oldObj, &old);
int oldLen = RichString_sizeVal(old);

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