aboutsummaryrefslogtreecommitdiff
path: root/view.c
diff options
context:
space:
mode:
Diffstat (limited to 'view.c')
-rw-r--r--view.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/view.c b/view.c
index d6de690..b1b210a 100644
--- a/view.c
+++ b/view.c
@@ -416,7 +416,7 @@ void view_draw(View *view) {
/* resync position of cursors within visible area */
for (Selection *s = view->selections; s; s = s->next) {
size_t pos = view_cursors_pos(s);
- if (!view_coord_get(view, pos, &s->line, &s->row, &s->col) &&
+ if (!view_coord_get(view, pos, &s->line, &s->row, &s->col) &&
s == view->selection) {
s->line = view->topline;
s->row = 0;