patch 8.1.0270: checking for a Tab in a line could be faster
Problem: Checking for a Tab in a line could be faster.
Solution: Use strchr() instead of strrchr(). (closes #3312)
diff --git a/src/ex_cmds.c b/src/ex_cmds.c
index 2c57776..bee50c5 100644
--- a/src/ex_cmds.c
+++ b/src/ex_cmds.c
@@ -281,7 +281,7 @@
*last = NUL;
len = linetabsize(line); /* get line length */
if (has_tab != NULL) /* check for embedded TAB */
- *has_tab = (vim_strrchr(first, TAB) != NULL);
+ *has_tab = (vim_strchr(first, TAB) != NULL);
*last = save;
return len;