aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-11-08 14:52:51 +0100
committerMarc André Tanner <mat@brain-dump.org>2016-11-08 14:52:51 +0100
commit3cb1328a533e785ff2e22a07c531abc308643d87 (patch)
tree9e6254bf07cd7811f92bdbd2b82c1cd3b07eed94
parenteef59590592f2de93a6101a44356f986d502d079 (diff)
downloadvis-3cb1328a533e785ff2e22a07c531abc308643d87.tar.gz
vis-3cb1328a533e785ff2e22a07c531abc308643d87.tar.xz
sam: dispose primary cursor at end of group
Something like :{ x/pattern/ } should not leave the original cursor around.
-rw-r--r--sam.c2
1 files changed, 2 insertions, 0 deletions
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: