- Fix tiny mode again after breaking it again
- Resurrect IFSCHELP to get rid of some needless help message stubs
- Add support for rebinding the suspend key
- Fix wrong refresh help message
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4224 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
diff --git a/src/text.c b/src/text.c
index d152a97..b544ad0 100644
--- a/src/text.c
+++ b/src/text.c
@@ -1366,6 +1366,7 @@
int kbinput;
bool meta_key, func_key, s_or_t, ran_func, finished;
+ const sc *s;
/* Move to the beginning of the current line, so that justifying at
* the end of the last line of the file, if that line isn't blank,
@@ -1681,8 +1682,9 @@
* the keystroke and return. */
kbinput = do_input(&meta_key, &func_key, &s_or_t, &ran_func,
&finished, FALSE);
+ s = get_shortcut(currmenu, &kbinput, &meta_key, &func_key);
- if (s_or_t && kbinput == NANO_UNJUSTIFY_KEY) {
+ if (s && s->scfunc == do_uncut_text) {
/* Splice the justify buffer back into the file, but only if we
* actually justified something. */
if (first_par_line != NULL) {