mirror of
git://git.sv.gnu.org/nano.git
synced 2024-12-29 05:39:55 +03:00
Fixing compilation with --enable-tiny.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4824 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
parent
4da2434dd7
commit
5f655da048
@ -8,6 +8,7 @@
|
||||
show the important toggles early on, and group them better.
|
||||
* src/global.c (shortcut_init): Improve order and grouping in the
|
||||
main help text and help lines.
|
||||
* src/global.c (strtosc): Fix compilation with --enable-tiny.
|
||||
|
||||
2014-04-27 Mark Majeres <mark@engine12.com>
|
||||
* src/rcfile.c (parse_include): Plug two tiny memory leaks.
|
||||
|
10
src/global.c
10
src/global.c
@ -483,7 +483,9 @@ void shortcut_init(void)
|
||||
const char *gotoline_tag = N_("Go To Line");
|
||||
const char *prev_line_tag = N_("Prev Line");
|
||||
const char *next_line_tag = N_("Next Line");
|
||||
#ifndef DISABLE_JUSTIFY
|
||||
const char *fulljustify_tag = N_("FullJstify");
|
||||
#endif
|
||||
const char *refresh_tag = N_("Refresh");
|
||||
#ifndef DISABLE_SPELLER
|
||||
const char *spell_tag = N_("To Spell");
|
||||
@ -1278,22 +1280,26 @@ sc *strtosc(char *input)
|
||||
s->scfunc = do_insertfile_void;
|
||||
else if (!strcasecmp(input, "whereis"))
|
||||
s->scfunc = do_search;
|
||||
#ifndef NANO_TINY
|
||||
else if (!strcasecmp(input, "searchagain") ||
|
||||
!strcasecmp(input, "research"))
|
||||
s->scfunc = do_research;
|
||||
#endif
|
||||
else if (!strcasecmp(input, "replace"))
|
||||
s->scfunc = do_replace;
|
||||
else if (!strcasecmp(input, "cut"))
|
||||
s->scfunc = do_cut_text_void;
|
||||
else if (!strcasecmp(input, "copytext"))
|
||||
s->scfunc = do_copy_text;
|
||||
else if (!strcasecmp(input, "uncut"))
|
||||
s->scfunc = do_uncut_text;
|
||||
#ifndef NANO_TINY
|
||||
else if (!strcasecmp(input, "copytext"))
|
||||
s->scfunc = do_copy_text;
|
||||
else if (!strcasecmp(input, "mark"))
|
||||
s->scfunc = do_mark;
|
||||
else if (!strcasecmp(input, "tospell") ||
|
||||
!strcasecmp(input, "speller"))
|
||||
s->scfunc = do_spell;
|
||||
#endif
|
||||
else if (!strcasecmp(input, "curpos") ||
|
||||
!strcasecmp(input, "cursorpos"))
|
||||
s->scfunc = do_cursorpos_void;
|
||||
|
Loading…
Reference in New Issue
Block a user