aboutsummaryrefslogtreecommitdiff
path: root/shell/shell.c
diff options
context:
space:
mode:
authorhwspeedy <ns@bigbear.dk>2024-02-28 21:14:30 +0100
committerhwspeedy <ns@bigbear.dk>2024-02-28 21:14:30 +0100
commit1537718abeb6807f341a19babd4cee3b46877d91 (patch)
tree507cc0ddd26336a537e9399991c6882aaaf11e51 /shell/shell.c
parent8209e8508b2a35611d92f8d93b3aa0297d72f405 (diff)
FIX GCC warnings and enable debug for old distros
Diffstat (limited to 'shell/shell.c')
-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;