aboutsummaryrefslogtreecommitdiff
path: root/vis.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2015-11-03 16:28:52 +0100
committerMarc André Tanner <mat@brain-dump.org>2015-11-03 16:28:52 +0100
commit250cdf484891e835f20c8624570daef0722e296f (patch)
treeb5eb3c760638a98bc18561736470e7ee42c93961 /vis.h
parent563c515068fc63cdabe9ccec9292714c78fae8eb (diff)
downloadvis-250cdf484891e835f20c8624570daef0722e296f.tar.gz
vis-250cdf484891e835f20c8624570daef0722e296f.tar.xz
vis: add vis_keys_inject to place keys into the input queue
This function can only be used from within key handlers. The position argument has to point to a valid key from within the same input buffer after which the new input will be inserted.
Diffstat (limited to 'vis.h')
-rw-r--r--vis.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/vis.h b/vis.h
index 4ceba61..0446f84 100644
--- a/vis.h
+++ b/vis.h
@@ -323,6 +323,7 @@ bool vis_cmd(Vis*, const char *cmd);
const char *vis_key_next(Vis*, const char *keys);
const char *vis_keys(Vis*, const char *input);
+bool vis_keys_inject(Vis*, const char *pos, const char *input);
bool vis_signal_handler(Vis*, int signum, const siginfo_t *siginfo,
const void *context);