aboutsummaryrefslogtreecommitdiff
path: root/view.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2015-08-01 12:08:52 +0200
committerMarc André Tanner <mat@brain-dump.org>2015-08-01 12:08:52 +0200
commit99753fa1f144b6e33c06b5a9a93725125b5e085a (patch)
treee6a75612f15e0f485ae4961a0d90ef2499e83541 /view.c
parentf38cdb2d38357f8f01a766ea21cb30661a0d99e8 (diff)
downloadvis-99753fa1f144b6e33c06b5a9a93725125b5e085a.tar.gz
vis-99753fa1f144b6e33c06b5a9a93725125b5e085a.tar.xz
view: hide API to free main cursor
Diffstat (limited to 'view.c')
-rw-r--r--view.c3
1 files changed, 2 insertions, 1 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);