projects
/
vimb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c645c7
)
Don't save commands from config file and default config in history.
author
Daniel Carl
<danielcarl@gmx.de>
Sat, 23 Feb 2013 10:36:34 +0000
(11:36 +0100)
committer
Daniel Carl
<danielcarl@gmx.de>
Sat, 23 Feb 2013 10:36:34 +0000
(11:36 +0100)
src/main.c
patch
|
blob
|
history
diff --git
a/src/main.c
b/src/main.c
index
ee44c43
..
65f6a15
100644
(file)
--- a/
src/main.c
+++ b/
src/main.c
@@
-189,6
+189,9
@@
static void vp_inputbox_activate_cb(GtkEntry *entry, gpointer user_data)
* for the command */
vp_set_mode(VP_MODE_NORMAL, FALSE);
}
+ /* save the command in history */
+ history_append((text + 1));
+
break;
}
}
@@
-304,9
+307,6
@@
static gboolean vp_process_input(const char* input)
success = command_run(token[0], token[1] ? token[1] : NULL);
g_strfreev(token);
- /* save the command in history */
- history_append(command);
-
return success;
}