* doc/syntax/python.nanorc: Don't colour triple quotes by themselves.
* doc/syntax/python.nanorc: Treat backslashed quotes properly, and
don't colour triple-quoted strings in two manners.
+ * src/text.c (do_justify): Accept not just the Uncut keystroke but
+ also the Undo keystroke for undoing a justification.
2015-12-02 Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
* doc/syntax/nftables.nanorc: New file; syntax colouring for nftables.
func = func_from_key(&kbinput);
- if (func == do_uncut_text) {
+ if (func == do_uncut_text || func == do_undo) {
/* Splice the justify buffer back into the file, but only if we
* actually justified something. */
if (first_par_line != NULL) {
edit_refresh_needed = TRUE;
}
} else {
- unget_kbinput(kbinput, meta_key, func_key);
+ if (func != do_undo)
+ unget_kbinput(kbinput, meta_key, func_key);
/* Blow away the text in the justify buffer. */
free_filestruct(jusbuffer);