aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--view.c3
-rw-r--r--view.h2
-rw-r--r--vis.c2
3 files changed, 3 insertions, 4 deletions
diff --git a/view.c b/view.c
index 6d62dde..cf579d2 100644
--- a/view.c
+++ b/view.c
@@ -94,6 +94,7 @@ static Cell cell_blank = { .data = " " };
static void view_clear(View *view);
static bool view_addch(View *view, Cell *cell);
static bool view_coord_get(View *view, size_t pos, Line **retline, int *retrow, int *retcol);
+static void view_cursors_free(Cursor *c);
/* set/move current cursor position to a given (line, column) pair */
static size_t cursor_set(Cursor *cursor, Line *line, int col);
@@ -897,7 +898,7 @@ int view_cursors_count(View *view) {
return i;
}
-void view_cursors_free(Cursor *c) {
+static void view_cursors_free(Cursor *c) {
if (!c)
return;
register_release(&c->reg);
diff --git a/view.h b/view.h
index dd28ed9..69727c0 100644
--- a/view.h
+++ b/view.h
@@ -120,8 +120,6 @@ int view_cursors_count(View*);
/* dispose an existing cursor with its associated selection (if any),
* not applicaple for the last existing cursor */
void view_cursors_dispose(Cursor*);
-/* dispose an existing cursor, no matter what */
-void view_cursors_free(Cursor*);
/* only keep the main cursor, release all others together with their
* selections (if any) */
void view_cursors_clear(View*);
diff --git a/vis.c b/vis.c
index 815588e..976a476 100644
--- a/vis.c
+++ b/vis.c
@@ -1419,7 +1419,7 @@ static void action_do(Action *a) {
if (pos != EPOS) {
view_cursors_to(cursor, pos);
} else {
- view_cursors_free(cursor);
+ view_cursors_dispose(cursor);
}
}
}