From 046819649794ff1d2fb23480cad28cc036a0743c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Sat, 25 Feb 2017 19:59:00 +0100 Subject: vis: mark 0, ^, g_ and $ as idempotent --- vis-motions.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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, -- cgit v1.2.3