patch 8.0.0966: build failure without terminal feature

Problem:    Build failure without terminal feature.
Solution:   Move #endif.
diff --git a/src/term.c b/src/term.c
index f526544..1c5be4d 100644
--- a/src/term.c
+++ b/src/term.c
@@ -3771,6 +3771,7 @@
 	out_str(T_VE);
     out_flush();
 }
+# endif
 
 /*
  * "shape" == 1: block, "shape" == 2: underline, "shape" == 3: vertical bar
@@ -3784,7 +3785,6 @@
 	out_flush();
     }
 }
-# endif
 #endif
 
 /*