Mercurial > vim
comparison src/search.c @ 1222:756bed568f5d
updated for version 7.1b
author | vimboss |
---|---|
date | Thu, 10 May 2007 18:59:07 +0000 |
parents | 9e084588b706 |
children | 87a777aea899 |
comparison
equal
deleted
inserted
replaced
1221:dc65bb5de20e | 1222:756bed568f5d |
---|---|
123 * | 123 * |
124 * pat_save == RE_SEARCH: save pat in spats[RE_SEARCH].pat (normal search cmd) | 124 * pat_save == RE_SEARCH: save pat in spats[RE_SEARCH].pat (normal search cmd) |
125 * pat_save == RE_SUBST: save pat in spats[RE_SUBST].pat (:substitute command) | 125 * pat_save == RE_SUBST: save pat in spats[RE_SUBST].pat (:substitute command) |
126 * pat_save == RE_BOTH: save pat in both patterns (:global command) | 126 * pat_save == RE_BOTH: save pat in both patterns (:global command) |
127 * pat_use == RE_SEARCH: use previous search pattern if "pat" is NULL | 127 * pat_use == RE_SEARCH: use previous search pattern if "pat" is NULL |
128 * pat_use == RE_SUBST: use previous sustitute pattern if "pat" is NULL | 128 * pat_use == RE_SUBST: use previous substitute pattern if "pat" is NULL |
129 * pat_use == RE_LAST: use last used pattern if "pat" is NULL | 129 * pat_use == RE_LAST: use last used pattern if "pat" is NULL |
130 * options & SEARCH_HIS: put search string in history | 130 * options & SEARCH_HIS: put search string in history |
131 * options & SEARCH_KEEP: keep previous search pattern | 131 * options & SEARCH_KEEP: keep previous search pattern |
132 * | 132 * |
133 * returns FAIL if failed, OK otherwise. | 133 * returns FAIL if failed, OK otherwise. |
945 } | 945 } |
946 #endif | 946 #endif |
947 | 947 |
948 /* | 948 /* |
949 * Highest level string search function. | 949 * Highest level string search function. |
950 * Search for the 'count'th occurence of pattern 'pat' in direction 'dirc' | 950 * Search for the 'count'th occurrence of pattern 'pat' in direction 'dirc' |
951 * If 'dirc' is 0: use previous dir. | 951 * If 'dirc' is 0: use previous dir. |
952 * If 'pat' is NULL or empty : use previous string. | 952 * If 'pat' is NULL or empty : use previous string. |
953 * If 'options & SEARCH_REV' : go in reverse of previous dir. | 953 * If 'options & SEARCH_REV' : go in reverse of previous dir. |
954 * If 'options & SEARCH_ECHO': echo the search command and handle options | 954 * If 'options & SEARCH_ECHO': echo the search command and handle options |
955 * If 'options & SEARCH_MSG' : may give error message | 955 * If 'options & SEARCH_MSG' : may give error message |