+2014-04-05 Mike Frysinger <vapier@gentoo.org>
+ * src/nano.c (do_input): Reload possibly freed function pointer.
+
2014-04-04 Benno Schulenberg <bensberg@justemail.net>
* src/{files.c,nano.c}: Avoid two more compilation warnings.
* configure.ac: Allow --enable-extra and --enable-multibuffer
#endif
s->scfunc();
#ifndef DISABLE_COLOR
+ /* The command might have re-initialized shortcuts,
+ * in which case f is now invalid. Let's reload it. */
+ f = sctofunc((sc *) s);
if (f && !f->viewok && openfile->syntax != NULL
&& openfile->syntax->nmultis > 0) {
reset_multis(openfile->current, FALSE);