You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
828 B

  1. From 368ec04870a366b19f1c5801a6868786547968b0 Mon Sep 17 00:00:00 2001
  2. From: Benno Schulenberg <bensberg@telfort.nl>
  3. Date: Wed, 19 Sep 2018 20:36:39 +0200
  4. Subject: build: fix compilation again when configured with --enable-tiny
  5. Reported-by: Jordi Mallach <jordi@mallach.net>
  6. ---
  7. src/nano.c | 5 ++++-
  8. 1 file changed, 4 insertions(+), 1 deletion(-)
  9. diff --git a/src/nano.c b/src/nano.c
  10. index ebb1f11..01f92a1 100644
  11. --- a/src/nano.c
  12. +++ b/src/nano.c
  13. @@ -1756,7 +1756,10 @@ int do_input(bool allow_funcs)
  14. if (shortcut == NULL)
  15. pletion_line = NULL;
  16. else {
  17. - if (ISSET(VIEW_MODE) && shortcut->func != do_toggle_void &&
  18. + if (ISSET(VIEW_MODE) &&
  19. +#ifndef NANO_TINY
  20. + shortcut->func != do_toggle_void &&
  21. +#endif
  22. !okay_for_view(shortcut)) {
  23. print_view_warning();
  24. return ERR;
  25. --
  26. cgit v1.0-41-gc330