summaryrefslogtreecommitdiff
path: root/src/search.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2007-08-08 20:49:37 +0000
committerBram Moolenaar <Bram@vim.org>2007-08-08 20:49:37 +0000
commitabc9773580f74a0767da91af5f342de4ee12936f (patch)
treef7a5707f236c6af7fd0c738a6621e3ad5808ce2a /src/search.c
parentc2f5abcf152b0bf25cc25c364ec6d0d0bfe58066 (diff)
downloadvim-git-abc9773580f74a0767da91af5f342de4ee12936f.tar.gz
updated for version 7.1-058v7.1.058
Diffstat (limited to 'src/search.c')
-rw-r--r--src/search.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/search.c b/src/search.c
index ee1aef597..58a763114 100644
--- a/src/search.c
+++ b/src/search.c
@@ -101,7 +101,6 @@ static int saved_no_hlsearch = 0;
static char_u *mr_pattern = NULL; /* pattern used by search_regcomp() */
#ifdef FEAT_RIGHTLEFT
static int mr_pattern_alloced = FALSE; /* mr_pattern was allocated */
-static char_u *reverse_text __ARGS((char_u *s));
#endif
#ifdef FEAT_FIND_ID
@@ -228,12 +227,12 @@ get_search_pat()
return mr_pattern;
}
-#ifdef FEAT_RIGHTLEFT
+#if defined(FEAT_RIGHTLEFT) || defined(PROTO)
/*
* Reverse text into allocated memory.
* Returns the allocated string, NULL when out of memory.
*/
- static char_u *
+ char_u *
reverse_text(s)
char_u *s;
{
@@ -1898,7 +1897,7 @@ findmatchlimit(oap, initc, flags, maxtravel)
}
#ifdef FEAT_RIGHTLEFT
- /* This is just guessing: when 'rightleft' is set, search for a maching
+ /* This is just guessing: when 'rightleft' is set, search for a matching
* paren/brace in the other direction. */
if (curwin->w_p_rl && vim_strchr((char_u *)"()[]{}<>", initc) != NULL)
backwards = !backwards;