diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-08-19 11:35:03 +0200 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2023-08-19 11:35:03 +0200 |
commit | 4dd266cb66d901cf5324f09405cfea3f004bd29f (patch) | |
tree | 107f870fe1c042d11466e459c3aaa1988b2d3bcf /src/proto/search.pro | |
parent | b102728c204430b16a5d9e6720c882e12a687570 (diff) |
patch 9.0.1738: Duplicate code to reverse a stringv9.0.1738
Problem: Duplicate code to reverse a string
Solution: Move reverse_text() to strings.c and remove string_reverse().
closes: #12847
Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
Diffstat (limited to 'src/proto/search.pro')
-rw-r--r-- | src/proto/search.pro | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/proto/search.pro b/src/proto/search.pro index 7a29ff3a03..99e279dadf 100644 --- a/src/proto/search.pro +++ b/src/proto/search.pro @@ -1,7 +1,6 @@ /* search.c */ int search_regcomp(char_u *pat, char_u **used_pat, int pat_save, int pat_use, int options, regmmatch_T *regmatch); char_u *get_search_pat(void); -char_u *reverse_text(char_u *s); void save_re_pat(int idx, char_u *pat, int magic); void save_search_patterns(void); void restore_search_patterns(void); |