# HG changeset patch # User Christian Brabandt # Date 1533991505 -7200 # Node ID 076b9632bda47d0aa6d20eb481c695dc35e1976e # Parent 41f03a01146c7ff8dc560fd9756e7e763be8f050 patch 8.1.0270: checking for a Tab in a line could be faster commit https://github.com/vim/vim/commit/b31a3acce13231643b006988c1ce76b8a12b2982 Author: Bram Moolenaar Date: Sat Aug 11 14:41:55 2018 +0200 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 https://github.com/vim/vim/issues/3312) diff --git a/src/ex_cmds.c b/src/ex_cmds.c --- a/src/ex_cmds.c +++ b/src/ex_cmds.c @@ -281,7 +281,7 @@ linelen(int *has_tab) *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; diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -795,6 +795,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 270, +/**/ 269, /**/ 268,