Using the correct column number also when messages are skipped.
And not minding when the column number is zero or negative. This partially fixes Savannah bug #47131. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5669 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
7dd1030b15
commit
6a002f5196
|
@ -17,6 +17,9 @@
|
||||||
* src/text.c (do_justify), src/winio.c (parse_escape_sequence):
|
* src/text.c (do_justify), src/winio.c (parse_escape_sequence):
|
||||||
Show the cursor after a justification and after an unrecognized
|
Show the cursor after a justification and after an unrecognized
|
||||||
escape sequence, and in the edit window when linting.
|
escape sequence, and in the edit window when linting.
|
||||||
|
* src/text.c (do_linter): Use the correct column number, also when
|
||||||
|
messages are skipped. And don't mind zero or negative numbers.
|
||||||
|
This is a partial fix for Savannah bug #47131.
|
||||||
|
|
||||||
2016-02-21 Benno Schulenberg <bensberg@justemail.net>
|
2016-02-21 Benno Schulenberg <bensberg@justemail.net>
|
||||||
* src/files.c (input_tab): If the first Tab added the part that all
|
* src/files.c (input_tab): If the first Tab added the part that all
|
||||||
|
|
|
@ -3106,13 +3106,9 @@ void do_linter(void)
|
||||||
curlint = lints;
|
curlint = lints;
|
||||||
|
|
||||||
while (TRUE) {
|
while (TRUE) {
|
||||||
ssize_t tmpcol = 1;
|
|
||||||
int kbinput;
|
int kbinput;
|
||||||
functionptrtype func;
|
functionptrtype func;
|
||||||
|
|
||||||
if (curlint->colno > 0)
|
|
||||||
tmpcol = curlint->colno;
|
|
||||||
|
|
||||||
if (tmplint != curlint) {
|
if (tmplint != curlint) {
|
||||||
#ifndef NANO_TINY
|
#ifndef NANO_TINY
|
||||||
struct stat lintfileinfo;
|
struct stat lintfileinfo;
|
||||||
|
@ -3159,7 +3155,7 @@ void do_linter(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif /* !NANO_TINY */
|
#endif /* !NANO_TINY */
|
||||||
do_gotolinecolumn(curlint->lineno, tmpcol, FALSE, FALSE);
|
do_gotolinecolumn(curlint->lineno, curlint->colno, FALSE, FALSE);
|
||||||
titlebar(NULL);
|
titlebar(NULL);
|
||||||
edit_refresh();
|
edit_refresh();
|
||||||
statusbar(curlint->msg);
|
statusbar(curlint->msg);
|
||||||
|
|
Loading…
Reference in New Issue