aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2015-09-19 16:39:24 +0200
committerMarc André Tanner <mat@brain-dump.org>2015-10-05 16:29:52 +0200
commitd638b9a1c3dc68accdc1f660851f0289b870c74d (patch)
treedbcde08d40de8c70ae95f0c4a17231bec1eae4fc
parent1df795756fd12c47aaa6593c459ae846d2186af0 (diff)
downloadvis-d638b9a1c3dc68accdc1f660851f0289b870c74d.tar.gz
vis-d638b9a1c3dc68accdc1f660851f0289b870c74d.tar.xz
vis: remove now unused common_prefix mode attribute
-rw-r--r--config.def.h1
-rw-r--r--editor.h1
2 files changed, 0 insertions, 2 deletions
diff --git a/config.def.h b/config.def.h
index fd6ce07..2211d32 100644
--- a/config.def.h
+++ b/config.def.h
@@ -513,7 +513,6 @@ static Mode vis_modes[] = {
},
[VIS_MODE_TEXTOBJ] = {
.name = "TEXTOBJ",
- .common_prefix = true,
.parent = &vis_modes[VIS_MODE_MOVE],
.default_bindings = vis_textobjs,
},
diff --git a/editor.h b/editor.h
index 7719f3d..598cf0c 100644
--- a/editor.h
+++ b/editor.h
@@ -43,7 +43,6 @@ struct Mode {
KeyBinding *default_bindings;
const char *name; /* descriptive, user facing name of the mode */
bool isuser; /* whether this is a user or internal mode */
- bool common_prefix; /* whether the first key in this mode is always the same */
void (*enter)(Mode *old); /* called right before the mode becomes active */
void (*leave)(Mode *new); /* called right before the mode becomes inactive */
void (*input)(const char*, size_t); /* called whenever a key is not found in this mode and all its parent modes */