diff options
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); } |
