aboutsummaryrefslogtreecommitdiff
path: root/view.c
diff options
context:
space:
mode:
Diffstat (limited to 'view.c')
-rw-r--r--view.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/view.c b/view.c
index 4af93f8..ff3ab42 100644
--- a/view.c
+++ b/view.c
@@ -912,6 +912,17 @@ void view_cursors_free(Cursor *c) {
free(c);
}
+void view_cursors_dispose(Cursor *c) {
+ if (!c)
+ return;
+ View *view = c->view;
+ if (view->cursors && view->cursors->next) {
+ view_selections_free(c->sel);
+ view_cursors_free(c);
+ view_draw(view);
+ }
+}
+
Cursor *view_cursors(View *view) {
return view->cursors;
}