From 64ceb85eed1c1f3aed33a3d3d224b18c07080bc0 Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Mon, 3 Jul 2023 18:10:22 +0200 Subject: [PATCH] [Script] Set type on Mode object. --- source/modes/script.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/modes/script.c b/source/modes/script.c index f1f87486..92ec95ef 100644 --- a/source/modes/script.c +++ b/source/modes/script.c @@ -576,6 +576,7 @@ Mode *script_mode_parse_setup(const char *str) { sw->_get_icon = script_get_icon; sw->_get_completion = NULL, sw->_preprocess_input = NULL, sw->_get_display_value = _get_display_value; + sw->type = MODE_TYPE_SWITCHER; return sw; } Mode *sw = g_malloc0(sizeof(*sw)); @@ -599,6 +600,7 @@ Mode *script_mode_parse_setup(const char *str) { sw->_get_icon = script_get_icon; sw->_get_completion = NULL, sw->_preprocess_input = NULL, sw->_get_display_value = _get_display_value; + sw->type = MODE_TYPE_SWITCHER; return sw; }