diff options
Diffstat (limited to 'view.c')
| -rw-r--r-- | view.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1336,7 +1336,7 @@ void view_cursors_to(Cursor *c, size_t pos) { void view_cursors_place(Cursor *c, size_t line, size_t col) { Text *txt = c->view->text; size_t pos = text_pos_by_lineno(txt, line); - pos = text_line_char_set(txt, pos, col); + pos = text_line_char_set(txt, pos, col > 0 ? col-1 : col); view_cursors_to(c, pos); } |
