Skip to content

Commit

Permalink
[Script] Set type on Mode object.
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveDavenport committed Jul 3, 2023
1 parent be6db24 commit 64ceb85
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/modes/script.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand All @@ -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;
}
Expand Down

0 comments on commit 64ceb85

Please sign in to comment.