aboutsummaryrefslogtreecommitdiff
path: root/sam.c
diff options
context:
space:
mode:
Diffstat (limited to 'sam.c')
-rw-r--r--sam.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sam.c b/sam.c
index 9363104..5d43410 100644
--- a/sam.c
+++ b/sam.c
@@ -929,7 +929,7 @@ static bool cmd_select(Vis *vis, Win *win, Command *cmd, const char *argv[], Cur
ret &= sam_execute(vis, win, cmd->cmd, c, &sel);
}
- if (primary != view_cursors_primary_get(view))
+ if (view == vis->win->view && primary != view_cursors_primary_get(view))
view_cursors_primary_set(view_cursors(view));
return ret;
}