aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
Diffstat (limited to 'shell')
-rw-r--r--shell/shell.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/shell.c b/shell/shell.c
index 22b1003f..e74486f2 100644
--- a/shell/shell.c
+++ b/shell/shell.c
@@ -1065,7 +1065,7 @@ static void set_view_type(ShellViewType viewtype, gboolean reload)
if (viewtype != shell->view_type)
type_changed = TRUE;
- if (viewtype < SHELL_VIEW_NORMAL || viewtype >= SHELL_VIEW_N_VIEWS)
+ if (viewtype >= SHELL_VIEW_N_VIEWS)
viewtype = SHELL_VIEW_NORMAL;
shell->normalize_percentage = TRUE;