commit b167444ee8dcf4c658376f2714db5775c5dd01d9
parent 6b0864837753767cb80aefb57c5f849f7b8bbc15
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Fri, 12 Oct 2018 12:17:15 +0200
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.
Diffstat:
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git 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;
}