diff options
author | keis <keijser@gmail.com> | 2010-12-05 18:07:58 +0100 |
---|---|---|
committer | keis <keijser@gmail.com> | 2010-12-11 13:45:26 +0100 |
commit | b9ab642298cba8e6a0aeb69a4ad427d679cdb5c2 (patch) | |
tree | 8a26d6639fc6225a3c445a9dcaa82670dd68c41e | |
parent | b6cad81e87942b1593f81a99171fa1fff4e6d0d4 (diff) |
make split_quoted split on tab
-rw-r--r-- | src/uzbl-core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/uzbl-core.c b/src/uzbl-core.c index 30bca6e..1fc8593 100644 --- a/src/uzbl-core.c +++ b/src/uzbl-core.c @@ -1224,7 +1224,7 @@ run_command (const gchar *command, const guint npre, const gchar **args, /*@null@*/ gchar** split_quoted(const gchar* src, const gboolean unquote) { - /* split on unquoted space, return array of strings; + /* split on unquoted space or tab, return array of strings; remove a layer of quotes and backslashes if unquote */ if (!src) return NULL; @@ -1245,7 +1245,7 @@ split_quoted(const gchar* src, const gboolean unquote) { else if ((*p == '\'') && unquote && !dq) sq = !sq; else if (*p == '\'' && !dq) { g_string_append_c(s, *p); sq = ! sq; } - else if ((*p == ' ') && !dq && !sq) { + else if ((*p == ' ' || *p == '\t') && !dq && !sq) { dup = g_strdup(s->str); g_array_append_val(a, dup); g_string_truncate(s, 0); |