The linter is only available when colour is.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5167 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
0b6d6f45d2
commit
52d7d5f55a
|
@ -7,6 +7,7 @@
|
||||||
and remove two unneeded ones. This greatly speeds up nano when doing
|
and remove two unneeded ones. This greatly speeds up nano when doing
|
||||||
a Replace All with *lots* of occurrences.
|
a Replace All with *lots* of occurrences.
|
||||||
* src/{color,global,nano,text,utils}.c: Normalize some whitespace.
|
* src/{color,global,nano,text,utils}.c: Normalize some whitespace.
|
||||||
|
* src/global.c (strtosc): The linter is only available when colour is.
|
||||||
|
|
||||||
2015-03-25 Benno Schulenberg <bensberg@justemail.net>
|
2015-03-25 Benno Schulenberg <bensberg@justemail.net>
|
||||||
* doc/syntax/debian.nanorc: Slightly widen and relax the header regex.
|
* doc/syntax/debian.nanorc: Slightly widen and relax the header regex.
|
||||||
|
@ -18,7 +19,7 @@
|
||||||
formatter allows no interaction it needs no associated menu.
|
formatter allows no interaction it needs no associated menu.
|
||||||
* src/text.c (do_formatter): Remove unneeded statement -- nothing
|
* src/text.c (do_formatter): Remove unneeded statement -- nothing
|
||||||
has changed the value of 'currmenu'.
|
has changed the value of 'currmenu'.
|
||||||
* src/global.c (strtomenu), doc/man/nanorc.5: Allow rebinding the
|
* src/global.c (strtosc), doc/man/nanorc.5: Allow rebinding the
|
||||||
linter when nano was configured with --disable-speller.
|
linter when nano was configured with --disable-speller.
|
||||||
|
|
||||||
2015-03-23 Benno Schulenberg <bensberg@justemail.net>
|
2015-03-23 Benno Schulenberg <bensberg@justemail.net>
|
||||||
|
|
|
@ -1311,8 +1311,10 @@ sc *strtosc(char *input)
|
||||||
!strcasecmp(input, "speller"))
|
!strcasecmp(input, "speller"))
|
||||||
s->scfunc = do_spell;
|
s->scfunc = do_spell;
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef DISABLE_COLOR
|
||||||
else if (!strcasecmp(input, "linter"))
|
else if (!strcasecmp(input, "linter"))
|
||||||
s->scfunc = do_linter;
|
s->scfunc = do_linter;
|
||||||
|
#endif
|
||||||
else if (!strcasecmp(input, "curpos") ||
|
else if (!strcasecmp(input, "curpos") ||
|
||||||
!strcasecmp(input, "cursorpos"))
|
!strcasecmp(input, "cursorpos"))
|
||||||
s->scfunc = do_cursorpos_void;
|
s->scfunc = do_cursorpos_void;
|
||||||
|
|
Loading…
Reference in New Issue