diff --git a/src/global.c b/src/global.c index 8d78b832..ada1edbd 100644 --- a/src/global.c +++ b/src/global.c @@ -300,6 +300,9 @@ void goto_dir(void) } #endif #ifndef NANO_TINY +void do_nothing(void) +{ +} void do_toggle_void(void) { } @@ -340,11 +343,6 @@ void do_cancel(void) { } -/* Ignore the start and stop sequences of a bracketed paste. */ -void do_nothing(void) -{ -} - /* Add a function to the linked list of functions. */ void add_to_funcs(void (*func)(void), int menus, const char *desc, const char *help, bool blank_after, bool viewok) diff --git a/src/prompt.c b/src/prompt.c index 91b5f27d..ad6f5220 100644 --- a/src/prompt.c +++ b/src/prompt.c @@ -485,8 +485,6 @@ functionptrtype acquire_an_answer(int *actual, bool allow_tabs, if (func == do_cancel || func == do_enter) break; - if (func == do_nothing) - finished = FALSE; #ifdef ENABLE_TABCOMP if (func != do_tab) @@ -552,6 +550,10 @@ functionptrtype acquire_an_answer(int *actual, bool allow_tabs, * the status-bar prompt. */ finished = FALSE; } +#ifndef NANO_TINY + else if (func == do_nothing) + finished = FALSE; +#endif /* If we have a shortcut with an associated function, break out if * we're finished after running or trying to run the function. */ diff --git a/src/proto.h b/src/proto.h index f00578e3..0ee48964 100644 --- a/src/proto.h +++ b/src/proto.h @@ -683,6 +683,7 @@ void to_files(void); void goto_dir(void); #endif #ifndef NANO_TINY +void do_nothing(void); void do_toggle_void(void); void dos_format_void(void); void mac_format_void(void); @@ -698,4 +699,3 @@ void flip_newbuffer(void); #endif void discard_buffer(void); void do_cancel(void); -void do_nothing(void);