diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2017-06-12 18:07:48 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2017-06-15 15:51:42 +0200 |
| commit | dc9f1cd879069889e6e3ef2fc6acc35250fe5423 (patch) | |
| tree | f664c7f837b0e62c176dc849481789376b7ea03a /view.c | |
| parent | e7717eb977142b6cb3b05e04c8623d39b7bac102 (diff) | |
| download | vis-dc9f1cd879069889e6e3ef2fc6acc35250fe5423.tar.gz vis-dc9f1cd879069889e6e3ef2fc6acc35250fe5423.tar.xz | |
view: rename view_cursors_dispose
Diffstat (limited to 'view.c')
| -rw-r--r-- | view.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -921,7 +921,7 @@ static Cursor *cursors_new(View *view, size_t pos, bool force) { } view->cursor_latest = c; view->cursor_count++; - view_cursors_dispose(view->cursor_dead); + view_selections_dispose(view->cursor_dead); view_cursors_to(c, pos); return c; err: @@ -1019,7 +1019,7 @@ static void view_cursors_free(Cursor *c) { free(c); } -bool view_cursors_dispose(Cursor *c) { +bool view_selections_dispose(Cursor *c) { if (!c) return true; View *view = c->view; @@ -1030,8 +1030,8 @@ bool view_cursors_dispose(Cursor *c) { return true; } -bool view_cursors_dispose_force(Cursor *c) { - if (view_cursors_dispose(c)) +bool view_selections_dispose_force(Cursor *c) { + if (view_selections_dispose(c)) return true; View *view = c->view; if (view->cursor_dead) |
