vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit 5e3c2c70a5d32bfa157c4ff683f30b3ced7bad4d parent d7175905952408c7ed175115e1b92aafda9eb45e Author: Marc André Tanner <mat@brain-dump.org> Date: Sat, 25 Feb 2017 19:59:00 +0100 vis: mark 0, ^, g_ and $ as idempotent Diffstat:
| M | vis-motions.c | | | 5 | ++++- |
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git 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,