diff options
author | Dave Davenport <qball@blame.services> | 2023-07-03 18:10:22 +0200 |
---|---|---|
committer | Dave Davenport <qball@blame.services> | 2023-07-03 18:10:22 +0200 |
commit | 64ceb85eed1c1f3aed33a3d3d224b18c07080bc0 (patch) | |
tree | 0a567fb9af7748e8e3d142f00b308665c5172653 | |
parent | be6db24667900bf45154242aee25ab95e7eb8ec3 (diff) |
[Script] Set type on Mode object.
-rw-r--r-- | source/modes/script.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; } |