aboutsummaryrefslogtreecommitdiffstats
path: root/src/strings.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/strings.c')
-rw-r--r--src/strings.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/strings.c b/src/strings.c
index 0eca298..1a211a2 100644
--- a/src/strings.c
+++ b/src/strings.c
@@ -142,11 +142,7 @@ int get_color_enum(const char* str)
int get_mode_enum(const char* str)
{
- int ret;
-
- ret = str2enum(modes, lengthof(modes), str);
-
- return ret == -1 ? A_NORMAL : ret;
+ return str2enum(modes, lengthof(modes), str);
}
int get_key_enum(const char* str)