commit 2439e1e4516d040d33cb07fad477bdf556efa8be
parent dab70d06ed00c13f09e66f57385873e5fede3dd2
Author: Benno Schulenberg <bensberg@justemail.net>
Date: Mon, 10 Apr 2017 19:59:54 +0200
linting: treat a tab as one "column", not eight
This fixes https://savannah.gnu.org/bugs/?47131.
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git 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);