in 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; also add a few last cosmetic fixes git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2090 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
e3016d90aa
commit
1f1ebb85b7
|
@ -227,6 +227,10 @@ CVS code -
|
||||||
- Make goal a ssize_t instead of an int, since fill is now a
|
- 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
|
ssize_t, and the position at which a line is broken can be
|
||||||
greater than COLS. (DLR)
|
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()
|
main()
|
||||||
- Tweak the command line parsing routine so that multiple +LINE
|
- Tweak the command line parsing routine so that multiple +LINE
|
||||||
flags are properly interpreted in multibuffer mode. (DLR)
|
flags are properly interpreted in multibuffer mode. (DLR)
|
||||||
|
|
|
@ -224,7 +224,7 @@ void sc_init_one(shortcut **shortcutage, int ctrlval, const char *desc,
|
||||||
s->next = NULL;
|
s->next = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
void shortcut_init(int unjustify)
|
void shortcut_init(bool unjustify)
|
||||||
{
|
{
|
||||||
const char *get_help_msg = N_("Get Help");
|
const char *get_help_msg = N_("Get Help");
|
||||||
const char *exit_msg = N_("Exit");
|
const char *exit_msg = N_("Exit");
|
||||||
|
|
|
@ -388,7 +388,8 @@ void help_init(void)
|
||||||
|
|
||||||
/* The space needed for the shortcut lists, at most COLS characters,
|
/* The space needed for the shortcut lists, at most COLS characters,
|
||||||
* plus '\n'. */
|
* 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
|
#ifndef NANO_SMALL
|
||||||
/* If we're on the main list, we also count the toggle help text.
|
/* If we're on the main list, we also count the toggle help text.
|
||||||
|
@ -400,7 +401,7 @@ void help_init(void)
|
||||||
for (t = toggles; t != NULL; t = t->next)
|
for (t = toggles; t != NULL; t = t->next)
|
||||||
allocsize += 8 + strlen(t->desc) + endislen;
|
allocsize += 8 + strlen(t->desc) + endislen;
|
||||||
}
|
}
|
||||||
#endif /* !NANO_SMALL */
|
#endif
|
||||||
|
|
||||||
/* help_text has been freed and set to NULL unless the user resized
|
/* help_text has been freed and set to NULL unless the user resized
|
||||||
* while in the help screen. */
|
* while in the help screen. */
|
||||||
|
@ -3088,8 +3089,10 @@ void handle_sigwinch(int s)
|
||||||
* dimensions. */
|
* dimensions. */
|
||||||
window_init();
|
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();
|
blank_statusbar();
|
||||||
|
shortcut_init(FALSE);
|
||||||
display_main_list();
|
display_main_list();
|
||||||
total_refresh();
|
total_refresh();
|
||||||
|
|
||||||
|
|
|
@ -263,7 +263,7 @@ void sc_init_one(shortcut **shortcutage, int key, const char *desc,
|
||||||
#endif
|
#endif
|
||||||
int metaval, int funcval, int miscval, int view, void
|
int metaval, int funcval, int miscval, int view, void
|
||||||
(*func)(void));
|
(*func)(void));
|
||||||
void shortcut_init(int unjustify);
|
void shortcut_init(bool unjustify);
|
||||||
void free_shortcutage(shortcut **shortcutage);
|
void free_shortcutage(shortcut **shortcutage);
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
void thanks_for_all_the_fish(void);
|
void thanks_for_all_the_fish(void);
|
||||||
|
|
Loading…
Reference in New Issue