mirror of
git://git.sv.gnu.org/nano.git
synced 2024-11-22 12:51:23 +03:00
do_justify - If the keystroke after the justify is not the unjustify key, blank the statsubar (bug reported by Neil Parks)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@520 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
parent
d096f68966
commit
00ae5dfa27
@ -4,6 +4,11 @@ CVS code -
|
||||
- cut.c:
|
||||
do_cut_text()
|
||||
- marked text cut fixes (Rocco) (Fixes bug #54).
|
||||
- nano.c:
|
||||
do_justify()
|
||||
- If the keystroke after the justify is not the unjustify key,
|
||||
blank the statsubar (bug reported by Neil Parks).
|
||||
|
||||
- hu.po:
|
||||
- Hungarian translation by Horvath Szabolcs.
|
||||
|
||||
|
5
nano.c
5
nano.c
@ -1913,9 +1913,10 @@ int do_justify(void)
|
||||
|
||||
/* Now get a keystroke and see if it's unjustify, if not unget the keytroke
|
||||
and return */
|
||||
if ((kbinput = wgetch(edit)) != NANO_UNJUSTIFY_KEY)
|
||||
if ((kbinput = wgetch(edit)) != NANO_UNJUSTIFY_KEY) {
|
||||
ungetch(kbinput);
|
||||
else {
|
||||
blank_statusbar_refresh();
|
||||
} else {
|
||||
/* Else restore the justify we just did (ungrateful user!) */
|
||||
if (tmptop->prev != NULL)
|
||||
tmptop->prev->next = tmpbot->next;
|
||||
|
Loading…
Reference in New Issue
Block a user