From b167444ee8dcf4c658376f2714db5775c5dd01d9 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Fri, 12 Oct 2018 12:17:15 +0200 Subject: [PATCH] tweaks: remove a check that was made redundant by the previous commit The previous commit also fixes https://savannah.gnu.org/bugs/?54650, so the change that was made to address that bug can be removed. --- src/nano.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/nano.c b/src/nano.c index 13a77fbd..31fd4ba3 100644 --- a/src/nano.c +++ b/src/nano.c @@ -1743,11 +1743,7 @@ int do_input(bool allow_funcs) if (shortcut == NULL) pletion_line = NULL; else { - if (ISSET(VIEW_MODE) && -#ifndef NANO_TINY - shortcut->func != do_toggle_void && -#endif - !okay_for_view(shortcut)) { + if (ISSET(VIEW_MODE) && !okay_for_view(shortcut)) { print_view_warning(); return ERR; }