diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2017-06-12 18:22:22 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2017-06-15 15:51:43 +0200 |
| commit | da6d35ef5b381aed3f9683398fd0869476d11acb (patch) | |
| tree | e0fe867c611aa3df19430d3904d99ba3a9c6818d | |
| parent | 2b472cece9f60b6f3e610ea8a7fc36173557fe0c (diff) | |
| download | vis-da6d35ef5b381aed3f9683398fd0869476d11acb.tar.gz vis-da6d35ef5b381aed3f9683398fd0869476d11acb.tar.xz | |
view: rename view_cursors_selection_save
| -rw-r--r-- | view.c | 2 | ||||
| -rw-r--r-- | view.h | 2 | ||||
| -rw-r--r-- | vis.c | 4 |
3 files changed, 4 insertions, 4 deletions
@@ -1234,7 +1234,7 @@ void view_selections_set(Selection *s, const Filerange *r) { view_cursors_to(s, text_mark_get(s->view->text, s->cursor)); } -void view_cursors_selection_save(Selection *s) { +void view_selections_save(Selection *s) { s->region.cursor = s->cursor; s->region.anchor = s->anchor; } @@ -333,7 +333,7 @@ Filerange view_selection_get(View*); * @{ */ /** Save selection which can later be restored. */ -void view_cursors_selection_save(Selection*); +void view_selections_save(Selection*); /** * Restore a previously active selection. * @rst @@ -252,7 +252,7 @@ void window_selection_save(Win *win) { file->marks[VIS_MARK_SELECTION_END] = text_mark_set(file->text, sel.end); if (!vis->action.op) { for (Selection *s = view_cursors(win->view); s; s = view_cursors_next(s)) - view_cursors_selection_save(s); + view_selections_save(s); } } @@ -980,7 +980,7 @@ void vis_do(Vis *vis) { view_selections_dispose(cursor); } else if (pos <= text_size(txt)) { if (vis->mode->visual) - view_cursors_selection_save(cursor); + view_selections_save(cursor); view_cursors_to(cursor, pos); } } |
