From 6a5d72f10cffb5bd2ae832c909cf75aab7db8666 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Mon, 12 Jun 2017 18:44:44 +0200 Subject: view: rename view_cursors_column --- main.c | 8 ++++---- view.c | 2 +- view.h | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/main.c b/main.c index e2da71f..edd0428 100644 --- a/main.c +++ b/main.c @@ -1308,7 +1308,7 @@ static const char *cursors_align_indent(Vis *vis, const char *keys, const Arg *a for (int i = 0; i < columns; i++) { int mincol = INT_MAX, maxcol = 0; - for (Cursor *c = view_cursors_column(view, i); c; c = view_selections_column_next(c, i)) { + for (Cursor *c = view_selections_column(view, i); c; c = view_selections_column_next(c, i)) { Filerange sel = view_selections_get(c); size_t pos = left_align ? sel.start : sel.end; int col = text_line_width_get(txt, pos); @@ -1324,7 +1324,7 @@ static const char *cursors_align_indent(Vis *vis, const char *keys, const Arg *a return keys; memset(buf, ' ', len); - for (Cursor *c = view_cursors_column(view, i); c; c = view_selections_column_next(c, i)) { + for (Cursor *c = view_selections_column(view, i); c; c = view_selections_column_next(c, i)) { Filerange sel = view_selections_get(c); size_t pos = left_align ? sel.start : sel.end; size_t ipos = sel.start; @@ -1427,7 +1427,7 @@ static const char *cursors_remove_column(Vis *vis, const char *keys, const Arg * return keys; } - for (Cursor *c = view_cursors_column(view, column), *next; c; c = next) { + for (Cursor *c = view_selections_column(view, column), *next; c; c = next) { next = view_selections_column_next(c, column); view_selections_dispose(c); } @@ -1448,7 +1448,7 @@ static const char *cursors_remove_column_except(Vis *vis, const char *keys, cons } Cursor *cur = view_selections(view); - Cursor *col = view_cursors_column(view, column); + Cursor *col = view_selections_column(view, column); for (Cursor *next; cur; cur = next) { next = view_selections_next(cur); if (cur == col) diff --git a/view.c b/view.c index 26c6cec..be74b62 100644 --- a/view.c +++ b/view.c @@ -990,7 +990,7 @@ static Cursor *cursors_column_next(View *view, Cursor *c, int column) { return NULL; } -Cursor *view_cursors_column(View *view, int column) { +Cursor *view_selections_column(View *view, int column) { return cursors_column_next(view, NULL, column); } diff --git a/view.h b/view.h index d98743c..2a3f15c 100644 --- a/view.h +++ b/view.h @@ -173,7 +173,7 @@ int view_selections_column_count(View*); * Starting from the start of the text, get the `column`-th selection on a line. * @param column The zero based column index. */ -Cursor *view_cursors_column(View*, int column); +Cursor *view_selections_column(View*, int column); /** * Get the next `column`-th selection on a line. * @param column The zero based column index. -- cgit v1.2.3