patch 8.0.0035
Problem:    Order of matches for 'omnifunc' is messed up. (Danny Su)
Solution:   Do not set compl_curr_match when called from complete_check().
            (closes #1168)
diff --git a/src/spell.c b/src/spell.c
index 69ac6df..eb81ad2 100644
--- a/src/spell.c
+++ b/src/spell.c
@@ -8694,7 +8694,7 @@
 		    /* Done all bytes at this node, go up one level. */
 		    --depth;
 		    line_breakcheck();
-		    ins_compl_check_keys(50);
+		    ins_compl_check_keys(50, FALSE);
 		}
 		else
 		{