aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2017-06-12 18:07:11 +0200
committerMarc André Tanner <mat@brain-dump.org>2017-06-15 15:51:42 +0200
commite7717eb977142b6cb3b05e04c8623d39b7bac102 (patch)
tree4bdc26ec286858c668665b5f11970247c27dd01b /main.c
parent318837f379d848a0ee431d25c15033a251433a33 (diff)
downloadvis-e7717eb977142b6cb3b05e04c8623d39b7bac102.tar.gz
vis-e7717eb977142b6cb3b05e04c8623d39b7bac102.tar.xz
view: rename view_cursors_new
Diffstat (limited to 'main.c')
-rw-r--r--main.c6
1 files changed, 3 insertions, 3 deletions
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);
}