patch 8.2.0939: checking for term escape sequences is long and confusing

Problem:    checking for term escape sequences is long and confusing
Solution:   Refactor code into separate functions.
diff --git a/src/version.c b/src/version.c
index 9f1cd00..49a2cf3 100644
--- a/src/version.c
+++ b/src/version.c
@@ -755,6 +755,8 @@
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    939,
+/**/
     938,
 /**/
     937,