diff options
author | Marco Peereboom <marco@conformal.com> | 2011-11-03 13:48:43 -0500 |
---|---|---|
committer | Marco Peereboom <marco@conformal.com> | 2011-11-03 13:48:43 -0500 |
commit | 5d86a4392fad1329624ff547eedbf9e8f46888dc (patch) | |
tree | 9901751c50b333601aba51e8e69bc53e04392bdd /xxxterm.c | |
parent | 2a1efecda379102f81bc4edeab808f7ccb894860 (diff) | |
download | xombrero-5d86a4392fad1329624ff547eedbf9e8f46888dc.tar.gz |
Fix 2 clever bugs
First :js/pl/cookie domain save wasn't saving the actual domain. I tried being clever to save a switch statement. FAIL. Second I tried to save an else statement. Again FAIL. Next time I am doing clever things please yell at me.
Diffstat (limited to 'xxxterm.c')
-rw-r--r-- | xxxterm.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/xxxterm.c b/xxxterm.c index 795156c..2541e39 100644 --- a/xxxterm.c +++ b/xxxterm.c @@ -5325,16 +5325,18 @@ cmd_activate_cb(GtkEntry *entry, struct tab *t) t->search_forward = c[0] == '/'; history_add(&shl, search_file, s, &search_history_count); - goto done; } else if (c[0] == '.' || c[0] == ',') { run_script(t, "hints.fire();"); /* XXX history for link following? */ - goto done; + } else if (c[0] == ':') { + history_add(&chl, command_file, s, &cmd_history_count); + cmd_execute(t, s); + /* can't call hide_cmd after cmd_execute */ + return; } - history_add(&chl, command_file, s, &cmd_history_count); - cmd_execute(t, s); done: + hide_cmd(t); return; } |