Skip to content

Commit

Permalink
view: rename view_cursors_selection_save
Browse files Browse the repository at this point in the history
  • Loading branch information
martanne committed Jun 15, 2017
1 parent 2b472ce commit da6d35e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion view.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion view.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions vis.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down Expand Up @@ -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);
}
}
Expand Down

0 comments on commit da6d35e

Please sign in to comment.