From 3cb1328a533e785ff2e22a07c531abc308643d87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Tue, 8 Nov 2016 14:52:51 +0100 Subject: sam: dispose primary cursor at end of group Something like :{ x/pattern/ } should not leave the original cursor around. --- sam.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sam.c b/sam.c index e238825..4d20f4a 100644 --- 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: -- cgit v1.2.3