diff options
| author | Simon Tatham <anakin@pobox.com> | 2004-03-30 20:01:44 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2004-03-30 20:01:44 +0000 |
| commit | 4b18ed86b5c3b5a4d9af1a94f1c413cb9b4f85e1 (patch) | |
| tree | ccf64ac6075863533e4636a1b640c663e395256d /input.c | |
| parent | a78001d2d090dafc3b8b3ee3b7d263ad4a32da95 (diff) | |
| download | halibut-4b18ed86b5c3b5a4d9af1a94f1c413cb9b4f85e1.zip halibut-4b18ed86b5c3b5a4d9af1a94f1c413cb9b4f85e1.tar.gz halibut-4b18ed86b5c3b5a4d9af1a94f1c413cb9b4f85e1.tar.bz2 halibut-4b18ed86b5c3b5a4d9af1a94f1c413cb9b4f85e1.tar.xz | |
Make \ii work!
[originally from svn r4003]
Diffstat (limited to 'input.c')
| -rw-r--r-- | input.c | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -999,8 +999,16 @@ static void read_file(paragraph ***ret, input *in, indexdata *idx) { } if (sitem->type & stack_idx) { indexword->text = ustrdup(indexstr.text); - if (index_downcase) + if (index_downcase) { + word *w; + ustrlow(indexword->text); + ustrlow(indexstr.text); + + for (w = idxwordlist; w; w = w->next) + if (w->text) + ustrlow(w->text); + } indexing = FALSE; rdadd(&indexstr, L'\0'); index_merge(idx, FALSE, indexstr.text, idxwordlist); |