From 6d2d23ac62fe41dcac97b21985051cfc87e0362f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Fri, 6 Jan 2017 22:10:37 +0100 Subject: vis: simplify mode lookup for :map and :unmap --- vis.h | 1 + 1 file changed, 1 insertion(+) (limited to 'vis.h') 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. */ -- cgit v1.2.3