From 2439e1e4516d040d33cb07fad477bdf556efa8be Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Mon, 10 Apr 2017 19:59:54 +0200 Subject: [PATCH] linting: treat a tab as one "column", not eight This fixes https://savannah.gnu.org/bugs/?47131. --- src/text.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/text.c b/src/text.c index bd3824ce..2aaebb64 100644 --- a/src/text.c +++ b/src/text.c @@ -3306,8 +3306,9 @@ void do_linter(void) } } #endif /* !NANO_TINY */ - do_gotolinecolumn(curlint->lineno, curlint->colno, FALSE, FALSE); + goto_line_posx(curlint->lineno, curlint->colno - 1); titlebar(NULL); + adjust_viewport(CENTERING); edit_refresh(); statusbar(curlint->msg); bottombars(MLINTER);