aboutsummaryrefslogtreecommitdiff
path: root/vis.c
diff options
context:
space:
mode:
Diffstat (limited to 'vis.c')
-rw-r--r--vis.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vis.c b/vis.c
index 2c72108..4aa7bd9 100644
--- a/vis.c
+++ b/vis.c
@@ -863,7 +863,7 @@ void vis_do(Vis *vis) {
.newpos = EPOS,
.range = text_range_empty(),
.reg = reg,
- .reg_slot = reg_slot == EPOS ? (size_t)view_cursors_number(cursor) : reg_slot,
+ .reg_slot = reg_slot == EPOS ? (size_t)view_selections_number(cursor) : reg_slot,
.linewise = linewise,
.arg = &a->arg,
.context = a->op ? a->op->context : NULL,