~ubuntu-branches/ubuntu/precise/fte/precise

« back to all changes in this revision

Viewing changes to src/e_search.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Neil Williams
  • Date: 2011-08-14 10:28:46 UTC
  • mfrom: (1.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20110814102846-kate2jfkduwpnika
Tags: 0.50.2b6-1
* QA upload.
* Synchronise with current upstream sources.
  (Closes: #195945)
* Include NMUs by Nobuhiro Iwamatsu and Hideki Yamane,
  thanks to both.
* Move to 3.0 quilt

Show diffs side-by-side

added added

removed removed

Lines of Context:
263
263
                C = Start;
264
264
        }
265
265
 
266
 
        while (((!(Options & SEARCH_BACK)) && (C <= End - Len))
267
 
               || ((Options & SEARCH_BACK) && (C >= Start))) {
 
266
        while (((!(Options & SEARCH_BACK)) && (C <= End - Len))
 
267
               || ((Options & SEARCH_BACK) && (C >= Start))) {
268
268
            if ((!(Options & SEARCH_WORDBEG)
269
269
                 || (C == 0)
270
270
                 || (WGETBIT(Flags.WordChars, P[C - 1]) == 0))
1180
1180
        return 0;
1181
1181
    }
1182
1182
 
1183
 
    int j = 2;
1184
 
    while (j--) {
1185
 
        int i;
1186
 
 
1187
 
        i = TagFind(this, View, word);
1188
 
        if (i > 0)
 
1183
    for (int j = 2; j; j--) {
 
1184
        if (TagFind(this, View, word))
1189
1185
            return 1;
1190
 
        else if (j && (i < 0)) {
 
1186
 
 
1187
        if (j == 2) {
1191
1188
            /* Try autoload tags */
1192
 
            if (View->ExecCommand(ExTagLoad, State) == 0)
 
1189
            if (!View->ExecCommand(ExTagLoad, State))
1193
1190
                break;
1194
1191
        } else {
1195
1192
            Msg(S_INFO, "Tag '%s' not found.", word);
1196
1193
            break;
1197
1194
        }
1198
1195
    }
 
1196
 
1199
1197
    return 0;
1200
1198
}
1201
1199
// *INDENT-ON*