diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-09-01 11:45:48 +1000 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-09-01 11:45:48 +1000 |
commit | 7e81e58e7d1f540e448f3827751f75bf54b1fe9f (patch) | |
tree | 924c61d27afcd3120f99137662d8f83a39769d1e /include/stringop.h | |
parent | Fix crash on reload (diff) | |
download | sway-7e81e58e7d1f540e448f3827751f75bf54b1fe9f.tar.gz sway-7e81e58e7d1f540e448f3827751f75bf54b1fe9f.tar.zst sway-7e81e58e7d1f540e448f3827751f75bf54b1fe9f.zip |
Allow reload command to exist anywhere in the command string
This fixes a crash if you have commands where reload appears in the
middle or at the end, such as `bindsym r mode default, reload`.
Diffstat (limited to 'include/stringop.h')
-rw-r--r-- | include/stringop.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/stringop.h b/include/stringop.h index e7f58011..01bbdaa9 100644 --- a/include/stringop.h +++ b/include/stringop.h | |||
@@ -46,4 +46,6 @@ char *cmdsep(char **stringp, const char *delim); | |||
46 | // Split string into 2 by delim, handle quotes | 46 | // Split string into 2 by delim, handle quotes |
47 | char *argsep(char **stringp, const char *delim); | 47 | char *argsep(char **stringp, const char *delim); |
48 | 48 | ||
49 | const char *strcasestr(const char *haystack, const char *needle); | ||
50 | |||
49 | #endif | 51 | #endif |