summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--client/channel_list.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/client/channel_list.go b/client/channel_list.go
index 5903792..10b07f1 100644
--- a/client/channel_list.go
+++ b/client/channel_list.go
@@ -52,6 +52,10 @@ func (cl *channelList) remove(location channelLocation) {
}
func (cl *channelList) traverse(direction int) {
+ if len(*cl) == 0 {
+ return
+ }
+
var i int
for i = 0; i < len(*cl); i++ {
if (*cl)[i].location == globalApp.currentWindow {