diff --git a/src/text.c b/src/text.c index 79bc026d..00570835 100644 --- a/src/text.c +++ b/src/text.c @@ -2823,7 +2823,10 @@ void do_linter(void) } if (tmplint != curlint) { + /* Put the cursor at the reported position, but don't go beyond EOL + * when the second number is a column number instead of an index. */ goto_line_posx(curlint->lineno, curlint->colno - 1); + openfile->current_x = actual_x(openfile->current->data, openfile->placewewant); titlebar(NULL); adjust_viewport(CENTERING); #ifdef ENABLE_LINENUMBERS