Fix regression bugs introduced with other recent bugs disguised as features.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4354 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
master
Chris Allegretta 2009-01-28 05:11:57 +00:00
parent 2823c99e72
commit 2d1bdd0dd6
4 changed files with 30 additions and 21 deletions

View File

@ -1224,24 +1224,16 @@ void iso_me_harder_funcmap(short func)
do_tab(); do_tab();
else if (func == DO_VERBATIM_INPUT) else if (func == DO_VERBATIM_INPUT)
do_verbatim_input(); do_verbatim_input();
#ifdef ENABLE_MULTIBUFFER
else if (func == SWITCH_TO_NEXT_BUFFER_VOID) else if (func == SWITCH_TO_NEXT_BUFFER_VOID)
switch_to_next_buffer_void(); switch_to_next_buffer_void();
else if (func == SWITCH_TO_PREV_BUFFER_VOID) else if (func == SWITCH_TO_PREV_BUFFER_VOID)
switch_to_prev_buffer_void(); switch_to_prev_buffer_void();
#endif
else if (func == DO_END) else if (func == DO_END)
do_end(); do_end();
else if (func == DO_HOME) else if (func == DO_HOME)
do_home(); do_home();
else if (func == DO_REDO)
do_redo();
else if (func == DO_UNDO)
do_undo();
else if (func == DO_WORDLINECHAR_COUNT)
do_wordlinechar_count();
else if (func == DO_FIND_BRACKET)
do_find_bracket();
else if (func == DO_PREV_WORD_VOID)
do_prev_word_void();
else if (func == DO_SUSPEND_VOID) else if (func == DO_SUSPEND_VOID)
do_suspend_void(); do_suspend_void();
else if (func == DO_WRITEOUT_VOID) else if (func == DO_WRITEOUT_VOID)
@ -1258,6 +1250,25 @@ void iso_me_harder_funcmap(short func)
do_gotolinecolumn_void(); do_gotolinecolumn_void();
else if (func == DO_REPLACE) else if (func == DO_REPLACE)
do_replace(); do_replace();
else if (func == XOFF_COMPLAINT)
xoff_complaint();
else if (func == XON_COMPLAINT)
xon_complaint();
else if (func == DO_CUT_TEXT)
do_cut_text_void();
#ifndef NANO_TINY
else if (func == DO_CUT_TILL_END)
do_cut_till_end();
else if (func == DO_REDO)
do_redo();
else if (func == DO_UNDO)
do_undo();
else if (func == DO_WORDLINECHAR_COUNT)
do_wordlinechar_count();
else if (func == DO_FIND_BRACKET)
do_find_bracket();
else if (func == DO_PREV_WORD_VOID)
do_prev_word_void();
else if (func == DO_JUSTIFY_VOID) else if (func == DO_JUSTIFY_VOID)
do_justify_void(); do_justify_void();
else if (func == DO_PARA_BEGIN_VOID) else if (func == DO_PARA_BEGIN_VOID)
@ -1282,20 +1293,15 @@ void iso_me_harder_funcmap(short func)
do_scroll_down(); do_scroll_down();
else if (func == DO_NEXT_WORD_VOID) else if (func == DO_NEXT_WORD_VOID)
do_next_word_void(); do_next_word_void();
else if (func == DO_CUT_TILL_END) #ifndef DISABLE_SPELLER
do_cut_till_end();
else if (func == XOFF_COMPLAINT)
xoff_complaint();
else if (func == XON_COMPLAINT)
xon_complaint();
else if (func == DO_SPELL) else if (func == DO_SPELL)
do_spell(); do_spell();
else if (func == DO_CUT_TEXT) #endif
do_cut_text_void();
else if (func == DO_NEXT_WORD) else if (func == DO_NEXT_WORD)
do_next_word_void(); do_next_word_void();
else if (func == DO_PREV_WORD) else if (func == DO_PREV_WORD)
do_prev_word_void(); do_prev_word_void();
#endif
} }

View File

@ -1529,7 +1529,9 @@ int do_input(bool *meta_key, bool *func_key, bool *s_or_t, bool
} }
#endif #endif
} }
#ifndef NANO_TINY
} }
#endif
*finished = TRUE; *finished = TRUE;
break; break;
} }

View File

@ -711,6 +711,8 @@ typedef struct subnfunc {
can go cut my wrists after writing the big switch statement can go cut my wrists after writing the big switch statement
that will necessitate. */ that will necessitate. */
#endif /* !NANO_TINY */
#define CASE_SENS_MSG 1 #define CASE_SENS_MSG 1
#define BACKWARDS_MSG 2 #define BACKWARDS_MSG 2
#define REGEXP_MSG 3 #define REGEXP_MSG 3
@ -864,7 +866,6 @@ typedef struct subnfunc {
#endif /* !NANO_TINY */
#define VIEW TRUE #define VIEW TRUE
#define NOVIEW FALSE #define NOVIEW FALSE

View File

@ -503,7 +503,7 @@ void parse_include(char *ptr)
lineno = 0; lineno = 0;
#ifdef DEBUG #ifdef DEBUG
fprintf(stderr, "Parsing file \"%s\"\n", full_option); fprintf(stderr, "Parsing file \"%s\"\n", option);
#endif #endif
parse_rcfile(rcstream parse_rcfile(rcstream