projects
/
vimb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef4c14c
)
Don't put autocmd commands in history.
author
Daniel Carl
<danielcarl@gmx.de>
Sun, 31 Aug 2014 22:42:01 +0000
(
00:42
+0200)
committer
Daniel Carl
<danielcarl@gmx.de>
Sun, 31 Aug 2014 22:42:01 +0000
(
00:42
+0200)
src/autocmd.c
patch
|
blob
|
history
diff --git
a/src/autocmd.c
b/src/autocmd.c
index
f08e2f9
..
1d69a7e
100644
(file)
--- a/
src/autocmd.c
+++ b/
src/autocmd.c
@@
-47,6
+47,8
@@
static struct {
{"PageLoadFailed", 0x0010},
};
+extern VbCore vb;
+
static AuGroup *curgroup = NULL;
static GSList *groups = NULL;
@@
-205,6
+207,9
@@
gboolean autocmd_run(const char *group, AuEvent event, const char *uri)
AutoCmd *cmd;
guint bits = events[event].bits;
+ /* don't record commands in history runed by autocmd */
+ vb.state.enable_history = false;
+
/* loop over the groups and find matching commands */
for (lg = groups; lg; lg = lg->next) {
grp = lg->data;
@@
-229,6
+234,7
@@
gboolean autocmd_run(const char *group, AuEvent event, const char *uri)
ex_run_string(cmd->excmd);
}
}
+ vb.state.enable_history = true;
return true;
}