From 4b18ed86b5c3b5a4d9af1a94f1c413cb9b4f85e1 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Tue, 30 Mar 2004 20:01:44 +0000 Subject: Make \ii work! [originally from svn r4003] --- input.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'input.c') diff --git a/input.c b/input.c index 95a7709..4c3b10d 100644 --- a/input.c +++ b/input.c @@ -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); -- cgit v1.1