summaryrefslogtreecommitdiffstats
path: root/view.c
diff options
context:
space:
mode:
Diffstat (limited to 'view.c')
-rw-r--r--view.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/view.c b/view.c
index 14cfc1d..baa2ac6 100644
--- a/view.c
+++ b/view.c
@@ -234,7 +234,8 @@ view(Arg *arg) {
234 234
235 for(i = 0; i < ntags; i++) 235 for(i = 0; i < ntags; i++)
236 seltag[i] = (arg->i == -1) ? True : False; 236 seltag[i] = (arg->i == -1) ? True : False;
237 seltag[arg->i] = True; 237 if(arg->i >= 0 && arg->i < ntags)
238 seltag[arg->i] = True;
238 arrange(); 239 arrange();
239} 240}
240 241