patch 9.0.1540: reverse() on string doesn't work in compiled function
Problem: reverse() on string doesn't work in compiled function.
Solution: Accept string in argument type check. (Yegappan Lakshmanan,
closes #12377)
diff --git a/src/optionstr.c b/src/optionstr.c
index 311b069..cfbcf3a 100644
--- a/src/optionstr.c
+++ b/src/optionstr.c
@@ -134,7 +134,7 @@
(void)opt_strings_flags(p_swb, p_swb_values, &swb_flags, TRUE);
}
-#if defined(FEAT_EVAL)
+#if defined(FEAT_EVAL) || defined(PROTO)
/*
* Trigger the OptionSet autocommand.
* "opt_idx" is the index of the option being set.