Indenting conditions consistently and tightly.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4628 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
919c9bdbbb
commit
3aea69daae
|
@ -6,6 +6,7 @@
|
|||
* src/rcfile.c (check_vitals_mapped) - Actually translate a
|
||||
helpful message, and reword it somewhat for clarity.
|
||||
* src/global.c - Remove unused function 'free_shortcutage'.
|
||||
* src/global.c (strtosc) - Indent conditions consistently.
|
||||
|
||||
2014-02-28 Eitan Adler <lists@eitanadler.com>
|
||||
* src/nano.c (do_toggle) - Constify a char pointer, to fix
|
||||
|
|
11
src/global.c
11
src/global.c
|
@ -1401,7 +1401,6 @@ sc *strtosc(int menu, char *input)
|
|||
s = (sc *)nmalloc(sizeof(sc));
|
||||
s->execute = TRUE; /* overridden as needed below */
|
||||
|
||||
|
||||
#ifndef DISABLE_HELP
|
||||
if (!strcasecmp(input, "help"))
|
||||
s->scfunc = do_help_void;
|
||||
|
@ -1422,11 +1421,11 @@ sc *strtosc(int menu, char *input)
|
|||
s->scfunc = do_up_void;
|
||||
else if (!strcasecmp(input, "down"))
|
||||
s->scfunc = do_down_void;
|
||||
else if (!strcasecmp(input, "pageup")
|
||||
|| !strcasecmp(input, "prevpage"))
|
||||
else if (!strcasecmp(input, "pageup") ||
|
||||
!strcasecmp(input, "prevpage"))
|
||||
s->scfunc = do_page_up;
|
||||
else if (!strcasecmp(input, "pagedown")
|
||||
|| !strcasecmp(input, "nextpage"))
|
||||
else if (!strcasecmp(input, "pagedown") ||
|
||||
!strcasecmp(input, "nextpage"))
|
||||
s->scfunc = do_page_down;
|
||||
else if (!strcasecmp(input, "cut"))
|
||||
s->scfunc = do_cut_text_void;
|
||||
|
@ -1639,9 +1638,7 @@ sc *strtosc(int menu, char *input)
|
|||
free(s);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return s;
|
||||
|
||||
}
|
||||
|
||||
#ifdef ENABLE_NANORC
|
||||
|
|
Loading…
Reference in New Issue