diff options
author | Daniel Carl <danielcarl@gmx.de> | 2013-05-28 11:24:14 +0200 |
---|---|---|
committer | Daniel Carl <danielcarl@gmx.de> | 2013-05-28 11:24:14 +0200 |
commit | c22966a3c997c8a250ca02f07f758298c41f6344 (patch) | |
tree | ccf6adec94b366f88ccb828812afe76a932161c0 /src/main.c | |
parent | 519c98f07c8ab733cc465bb633eb69c2b0b8f815 (diff) |
Fixed garbage file create on :quit (#22).
On 64Bit systems there was created a garbage file with content 'quit', if the
browser was closed by command :quit in inputbox. This happend because the quit
command was run first and freed the command history file, after that the last
command was tried to be saved in history.
This patch moved the save of command in history before the call of the
command, this sounds a little unusual, but I think this is ok for this case.
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -482,14 +482,14 @@ static void inputbox_activate_cb(GtkEntry *entry) case '?': a.i = *text == '/' ? VB_SEARCH_FORWARD : VB_SEARCH_BACKWARD; a.s = (command + 1); - command_search(&a); history_add(HISTORY_SEARCH, command + 1); + command_search(&a); break; case ':': completion_clean(); - command_run_string((command + 1)); history_add(HISTORY_COMMAND, command + 1); + command_run_string((command + 1)); break; } |