aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index a8529f9..49c41b2 100644
--- a/main.c
+++ b/main.c
@@ -1176,7 +1176,7 @@ static const char *cursors_align(Vis *vis, const char *keys, const Arg *arg) {
for (Cursor *c = view_cursors(view); c; c = view_cursors_next(c)) {
if (view_cursors_cell_set(c, mincol) == -1) {
size_t pos = view_cursors_pos(c);
- size_t col = text_line_char_set(txt, pos, mincol);
+ size_t col = text_line_width_set(txt, pos, mincol);
view_cursors_to(c, col);
}
}