diff options
Diffstat (limited to 'vis.c')
| -rw-r--r-- | vis.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -908,7 +908,7 @@ static const char *gotoline(Vis *vis, const char *keys, const Arg *arg) { } static const char *motiontype(Vis *vis, const char *keys, const Arg *arg) { - vis->action.type = arg->i; + vis_motion_type(vis, arg->i); return keys; } @@ -2888,3 +2888,7 @@ void vis_mark_set(Vis *vis, enum VisMark mark, size_t pos) { if (mark < LENGTH(file->marks)) file->marks[mark] = text_mark_set(file->text, pos); } + +void vis_motion_type(Vis *vis, enum VisMotionType type) { + vis->action.type = type; +} |
