aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2015-11-07 08:51:26 +0100
committerMarc André Tanner <mat@brain-dump.org>2015-11-07 12:16:34 +0100
commit26b56bc3090e9ad6ffd71f216a53805c5e894807 (patch)
tree48f4d26dd01571df196bd1ee2228c3d72e65581b /main.c
parentf1002cdc6d70bae0c5f68df1d91cd170189d4789 (diff)
downloadvis-26b56bc3090e9ad6ffd71f216a53805c5e894807.tar.gz
vis-26b56bc3090e9ad6ffd71f216a53805c5e894807.tar.xz
vis: API documentation and cleanup
Diffstat (limited to 'main.c')
-rw-r--r--main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/main.c b/main.c
index 9d6cd10..21cc04e 100644
--- a/main.c
+++ b/main.c
@@ -1194,7 +1194,7 @@ static const char *cursors_remove(Vis *vis, const char *keys, const Arg *arg) {
static const char *replace(Vis *vis, const char *keys, const Arg *arg) {
if (!keys[0])
return NULL;
- const char *next = vis_key_next(vis, keys);
+ const char *next = vis_keys_next(vis, keys);
if (!next)
return NULL;
size_t len = next - keys;
@@ -1243,7 +1243,7 @@ static const char *movement_key(Vis *vis, const char *keys, const Arg *arg) {
if (!keys[0])
return NULL;
char key[32];
- const char *next = vis_key_next(vis, keys);
+ const char *next = vis_keys_next(vis, keys);
strncpy(key, keys, next - keys + 1);
key[sizeof(key)-1] = '\0';
vis_motion(vis, arg->i, key);
@@ -1274,7 +1274,7 @@ static const char *selection_restore(Vis *vis, const char *keys, const Arg *arg)
}
static const char *key2register(Vis *vis, const char *keys, enum VisRegister *reg) {
- *reg = VIS_REGISTER_INVALID;
+ *reg = VIS_REG_INVALID;
if (!keys[0])
return NULL;
if (keys[0] >= 'a' && keys[0] <= 'z')