main list, so that "UnJustify" isn't erroneously displayed when we
justify, suspend, and then continue; also add a few last cosmetic fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2090
35c25a1d-7b9e-4130-9fde-
d3aeb78583b8
- Make goal a ssize_t instead of an int, since fill is now a
ssize_t, and the position at which a line is broken can be
greater than COLS. (DLR)
+ handle_sigwinch()
+ - Call shortcut_init(FALSE) defore redisplaying the main list,
+ so that "UnJustify" isn't erroneously displayed when we
+ justify, suspend, and then continue. (DLR)
main()
- Tweak the command line parsing routine so that multiple +LINE
flags are properly interpreted in multibuffer mode. (DLR)
s->next = NULL;
}
-void shortcut_init(int unjustify)
+void shortcut_init(bool unjustify)
{
const char *get_help_msg = N_("Get Help");
const char *exit_msg = N_("Exit");
/* The space needed for the shortcut lists, at most COLS characters,
* plus '\n'. */
- allocsize += (COLS < 21 ? 21 : COLS + 1) * length_of_list(currshortcut);
+ allocsize += (COLS < 21 ? 21 : COLS + 1) *
+ length_of_list(currshortcut);
#ifndef NANO_SMALL
/* If we're on the main list, we also count the toggle help text.
for (t = toggles; t != NULL; t = t->next)
allocsize += 8 + strlen(t->desc) + endislen;
}
-#endif /* !NANO_SMALL */
+#endif
/* help_text has been freed and set to NULL unless the user resized
* while in the help screen. */
* dimensions. */
window_init();
- /* Redraw the contents of the windows that need it. */
+ /* Redraw the contents of the windows that need it, and display the
+ * shortcut list with UnCut. */
blank_statusbar();
+ shortcut_init(FALSE);
display_main_list();
total_refresh();
#endif
int metaval, int funcval, int miscval, int view, void
(*func)(void));
-void shortcut_init(int unjustify);
+void shortcut_init(bool unjustify);
void free_shortcutage(shortcut **shortcutage);
#ifdef DEBUG
void thanks_for_all_the_fish(void);