From e7717eb977142b6cb3b05e04c8623d39b7bac102 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Mon, 12 Jun 2017 18:07:11 +0200 Subject: view: rename view_cursors_new --- main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index 22f650e..b69e321 100644 --- a/main.c +++ b/main.c @@ -1267,7 +1267,7 @@ static const char *cursors_new(Vis *vis, const char *keys, const Arg *arg) { view_line_up(cursor); size_t newpos = view_cursors_pos(cursor); view_cursors_to(cursor, oldpos); - Cursor *cursor_new = view_cursors_new(view, newpos); + Cursor *cursor_new = view_selections_new(view, newpos); if (!cursor_new) { if (arg->i == -1) cursor_new = view_cursors_prev(cursor); @@ -1378,7 +1378,7 @@ static const char *cursors_select_next(Vis *vis, const char *keys, const Arg *ar Filerange word = text_object_word_find_next(txt, sel.end, buf); if (text_range_valid(&word)) { size_t pos = text_char_prev(txt, word.end); - if ((cursor = view_cursors_new(view, pos))) { + if ((cursor = view_selections_new(view, pos))) { view_cursors_selection_set(cursor, &word); view_cursors_primary_set(cursor); goto out; @@ -1390,7 +1390,7 @@ static const char *cursors_select_next(Vis *vis, const char *keys, const Arg *ar if (!text_range_valid(&word)) goto out; size_t pos = text_char_prev(txt, word.end); - if ((cursor = view_cursors_new(view, pos))) { + if ((cursor = view_selections_new(view, pos))) { view_cursors_selection_set(cursor, &word); view_cursors_primary_set(cursor); } -- cgit v1.2.3