vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit 78bb0c093d4e4501ec2db861bf0d305443b283ca
parent 6b84157d1a1ff32411dc2dfbbbc4a564bae7f1a3
Author: Marc André Tanner <mat@brain-dump.org>
Date: Tue, 8 Nov 2016 14:52:51 +0100
sam: dispose primary cursor at end of group
Something like :{ x/pattern/ } should not leave the original
cursor around.
Diffstat:
| M | sam.c | | | 2 | ++ |
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/sam.c b/sam.c @@ -783,6 +783,8 @@ static bool sam_execute(Vis *vis, Win *win, Command *cmd, Cursor *cur, Filerange group.start = s; group.end = text_mark_get(txt, end); } + + view_cursors_dispose(cur); break; } default: