Allowing to rebind the linter when nano was configured with --disable-speller.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5162 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
ff4a457d82
commit
b455fa3a16
|
@ -8,6 +8,8 @@
|
||||||
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
|
||||||
|
linter when nano was configured with --disable-speller.
|
||||||
|
|
||||||
2015-03-23 Benno Schulenberg <bensberg@justemail.net>
|
2015-03-23 Benno Schulenberg <bensberg@justemail.net>
|
||||||
* src/text.c (do_alt_speller): Avoid the spell checker reporting
|
* src/text.c (do_alt_speller): Avoid the spell checker reporting
|
||||||
|
|
|
@ -418,6 +418,9 @@ Counts the number of words, lines and characters in the current buffer.
|
||||||
Invokes a spell-checking program (or a linting program, if the current
|
Invokes a spell-checking program (or a linting program, if the current
|
||||||
syntax highlighting defines one).
|
syntax highlighting defines one).
|
||||||
.TP
|
.TP
|
||||||
|
.B linter
|
||||||
|
A synonym of \fBspeller\fR (for when the speller has not been configured).
|
||||||
|
.TP
|
||||||
.B justify
|
.B justify
|
||||||
Justifies the current paragraph.
|
Justifies the current paragraph.
|
||||||
.TP
|
.TP
|
||||||
|
|
|
@ -1311,6 +1311,8 @@ sc *strtosc(char *input)
|
||||||
!strcasecmp(input, "speller"))
|
!strcasecmp(input, "speller"))
|
||||||
s->scfunc = do_spell;
|
s->scfunc = do_spell;
|
||||||
#endif
|
#endif
|
||||||
|
else if (!strcasecmp(input, "linter"))
|
||||||
|
s->scfunc = do_linter;
|
||||||
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