2015-03-08 Benno Schulenberg <bensberg@justemail.net>
* src/proto.h, src/nano.c: Fix compilation with --enable-tiny plus
--enable-nanorc.
+ * src/rcfile.c (parse_binding): Fix the rebinding of toggles.
2015-03-07 Benno Schulenberg <bensberg@justemail.net>
* doc/man/nanorc.5, doc/texinfo/nano.texi: Add a note about the
GNU nano 2.3.99pre2 - 2015.02.27
2015-02-25 Chris Allegretta <chrisa@asty.org>
* src/rcfile.c (parse_binding): Add an exception for do_toggle() as
- rebinding toggles broke with r5022.
+ rebinding toggles broke with r5022. (Fixed in r5134.)
2015-02-21 Benno Schulenberg <bensberg@justemail.net>
* README: Fix the explanation of how to subscribe to a mailing list.
fprintf(stderr, "unbinding \"%s\" from menu %x\n", keycopy, menu);
#endif
- if (dobind && newsc->scfunc != do_toggle_void) {
+ if (dobind) {
subnfunc *f;
int mask = 0;
if (f->scfunc == newsc->scfunc)
mask = mask | f->menus;
+ /* Handle the special case of the toggles. */
+ if (newsc->scfunc == do_toggle_void)
+ mask = MMAIN;
+
/* Now limit the given menu to those where the function exists. */
if (is_universal(newsc->scfunc))
menu = menu & MMOST;