aboutsummaryrefslogtreecommitdiff
path: root/vis.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2017-01-06 22:10:37 +0100
committerMarc André Tanner <mat@brain-dump.org>2017-01-06 22:10:37 +0100
commit6d2d23ac62fe41dcac97b21985051cfc87e0362f (patch)
tree6225c105737f029c9293dc87d54b0b1cd13379fd /vis.h
parent604c866bd0c034340efaea54ebbb86b6dc6e66f4 (diff)
downloadvis-6d2d23ac62fe41dcac97b21985051cfc87e0362f.tar.gz
vis-6d2d23ac62fe41dcac97b21985051cfc87e0362f.tar.xz
vis: simplify mode lookup for :map and :unmap
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 8f76405..7d909b5 100644
--- a/vis.h
+++ b/vis.h
@@ -169,6 +169,7 @@ enum VisMode {
void vis_mode_switch(Vis*, enum VisMode);
enum VisMode vis_mode_get(Vis*);
+enum VisMode vis_mode_from(Vis*, const char *name);
/* In the specified mode: map a given key to a binding (binding->key is ignored).
* Fails if a prefix of `key' is already mapped and `force' is false. Otherwise
* all such prefixes are unmapped. */