From b9ab642298cba8e6a0aeb69a4ad427d679cdb5c2 Mon Sep 17 00:00:00 2001 From: keis Date: Sun, 5 Dec 2010 18:07:58 +0100 Subject: make split_quoted split on tab --- src/uzbl-core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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); -- cgit v1.2.3