check for multiline autocompletion pref in filter

(Sorry, missed this in the last PR -- we check the input in two places before giving completion suggestions.)