aboutsummaryrefslogtreecommitdiffhomepage
path: root/uzbl.c
diff options
context:
space:
mode:
authorGravatar Robert Manea <gotmor@gmail.com>2009-06-18 23:31:38 +0200
committerGravatar Robert Manea <gotmor@gmail.com>2009-06-18 23:31:38 +0200
commit8c73265c01efad22307d2112860a613e20445b93 (patch)
tree2bd4bd6dcb59f2dd64704a18412968cc114449e4 /uzbl.c
parent53357d65eaac90ea3b51bc56d17851df00cd3891 (diff)
allow @<...>@ inside of @(...)@ and vice versa
Diffstat (limited to 'uzbl.c')
-rw-r--r--uzbl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/uzbl.c b/uzbl.c
index bbb1d00..2ab95c3 100644
--- a/uzbl.c
+++ b/uzbl.c
@@ -289,7 +289,7 @@ expand(char *s, gboolean recurse) {
if(upto == ' ') s = vend;
else s = vend+1;
}
- else if(!recurse &&
+ else if(recurse != 1 &&
etype == EXP_EXPR) {
mycmd = expand(ret, 1);
g_spawn_command_line_sync(mycmd, &cmd_stdout, NULL, NULL, &err);
@@ -305,9 +305,9 @@ expand(char *s, gboolean recurse) {
}
s = vend+2;
}
- else if(!recurse &&
+ else if(recurse != 2 &&
etype == EXP_JS) {
- mycmd = expand(ret, 1);
+ mycmd = expand(ret, 2);
eval_js(uzbl.gui.web_view, mycmd, js_ret);
g_free(mycmd);