"Context per line" preference doesn't seem to do anything useful
Closed, ResolvedPublic

Description

In the search preferences i can put a number in "Context per line". I tried changing it and no matter what i put there, nothing seems to change on the results page.

It it supposed to do anything at all? If it doesn't do anything on Wikipedia, then why is the preference still there?


Version: unspecified
Severity: normal

Details

Reference
bz28343
bzimport set Reference to bz28343.
Amire80 created this task.Mar 31 2011, 6:43 AM

Need to check if it is used in the default search engine or some of the search extensions like sphinx.

brion added a comment.Apr 6 2011, 10:27 PM

If I'm reading this correctly, the contextchars option basically got disabled in r34210 (and contextlines earlier), when Robert was rewriting a lot of the highlighting code in 2008.

It seems to have been hardcoded at 2 lines and 75 chars, replacing the user preferences... probably we should just drop the prefs, if they've been broken for a couple years and nobody noticed!

(contextchars is also used in the ReplaceText extension, but could be dropped from there.)

(In reply to comment #2)

probably we should just drop the prefs

+1

Now, where is Chad...

demon added a comment.May 1 2011, 9:14 PM

Done in r87215 :D

Add Comment