diff --git a/ChangeLog b/ChangeLog index d1ec136ad9984c41157481bb0eff1af7971a62fc..7b49c491b96d6c0aba20214b9702d8cc088406a2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -9,6 +9,9 @@ CVS code - NANO_NEXTLINE_KEY, and the help messages for them have been changed accordingly. Also remove extraneous references to NANO_DOWN_KEY in the search history shortcut entries. (DLR) + - Add NANO_UNJUSTIFY_FKEY (the same as NANO_UNCUT_FKEY) to the + shortcut list, and tweak the unjustify routine to use it. + (DLR) - files.c: write_marked() - New function used to write the current marked selection to a diff --git a/src/global.c b/src/global.c index 91fdefd99f1efc5a67412f5e52f39eea129003dc..546a0be73f83b7b3c2b239a07390a2ee2d6f9491 100644 --- a/src/global.c +++ b/src/global.c @@ -494,7 +494,7 @@ void shortcut_init(int unjustify) if (unjustify) /* Translators: try to keep this string under 10 characters long */ sc_init_one(&main_list, NANO_UNJUSTIFY_KEY, _("UnJustify"), - IFHELP(nano_unjustify_msg, NANO_NO_KEY), NANO_NO_KEY, + IFHELP(nano_unjustify_msg, NANO_NO_KEY), NANO_UNJUSTIFY_FKEY, NANO_NO_KEY, NOVIEW, do_uncut_text); else /* Translators: try to keep this string under 10 characters long */ diff --git a/src/nano.c b/src/nano.c index 19efdfe9120eff064020ff7e02e8f60ad39030aa..3f05df6e5a35aeed30015fd5c9a25f21bf3af82c 100644 --- a/src/nano.c +++ b/src/nano.c @@ -2663,7 +2663,7 @@ int do_para_operation(int operation) #endif } - if (i != NANO_UNJUSTIFY_KEY) { + if (i != NANO_UNJUSTIFY_KEY && i != NANO_UNJUSTIFY_FKEY) { ungetch(i); /* Did we back up anything at all? */ if (cutbuffer != cutbuffer_save) diff --git a/src/nano.h b/src/nano.h index 419d5beffbbd269c4063fcbc0e1030d11c183845..cf8645f3a2ea6399e43294c22743bffd2eab129b 100644 --- a/src/nano.h +++ b/src/nano.h @@ -404,7 +404,8 @@ typedef struct historyheadtype { #define NANO_REFRESH_KEY NANO_CONTROL_L #define NANO_JUSTIFY_KEY NANO_CONTROL_J #define NANO_JUSTIFY_FKEY KEY_F(4) -#define NANO_UNJUSTIFY_KEY NANO_CONTROL_U +#define NANO_UNJUSTIFY_KEY NANO_UNCUT_KEY /* Same key as uncut. */ +#define NANO_UNJUSTIFY_FKEY NANO_UNCUT_FKEY /* Same key as uncut. */ #define NANO_PREVLINE_KEY NANO_CONTROL_P #define NANO_NEXTLINE_KEY NANO_CONTROL_N #define NANO_FORWARD_KEY NANO_CONTROL_F