about summary refs log tree commit diff stats
path: root/view.c
diff options
context:
space:
mode:
Diffstat (limited to 'view.c')
-rw-r--r--view.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/view.c b/view.c
index f1be609..8f5ad64 100644
--- a/view.c
+++ b/view.c
@@ -172,7 +172,9 @@ focusprev(Arg *arg)
 void
 growcol(Arg *arg)
 {
-	if(!sel || !clients || !clients->next || (arrange != dotile))
+	Client *c = getnext(clients);
+
+	if(!sel || !c || !getnext(c->next) || (arrange != dotile))
 		return;
 	if(sel == getnext(clients)) {
 		if(mw + arg->i > sw - 100)
>97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122