diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2017-02-25 19:59:00 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2017-02-25 19:59:00 +0100 |
| commit | 046819649794ff1d2fb23480cad28cc036a0743c (patch) | |
| tree | 9a42cbaa630351f588faca8000a5ec98ef24d895 /vis-motions.c | |
| parent | e165a615fc0f2964bd8de37d3ed4973cddeda83b (diff) | |
| download | vis-046819649794ff1d2fb23480cad28cc036a0743c.tar.gz vis-046819649794ff1d2fb23480cad28cc036a0743c.tar.xz | |
vis: mark 0, ^, g_ and $ as idempotent
Diffstat (limited to 'vis-motions.c')
| -rw-r--r-- | vis-motions.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/vis-motions.c b/vis-motions.c index 9b4a8ab..f8baf1d 100644 --- a/vis-motions.c +++ b/vis-motions.c @@ -386,16 +386,19 @@ const Movement vis_motions[] = { }, [VIS_MOVE_LINE_BEGIN] = { .txt = text_line_begin, + .type = IDEMPOTENT, }, [VIS_MOVE_LINE_START] = { .txt = text_line_start, + .type = IDEMPOTENT, }, [VIS_MOVE_LINE_FINISH] = { .txt = text_line_finish, - .type = INCLUSIVE, + .type = INCLUSIVE|IDEMPOTENT, }, [VIS_MOVE_LINE_END] = { .txt = text_line_end, + .type = IDEMPOTENT, }, [VIS_MOVE_LINE_NEXT] = { .txt = text_line_next, |
