Don't overwrite user-provided line_numbers for content_args.

This commit is contained in:
voussoir 2020-10-01 20:19:09 -07:00
parent 466a2be733
commit 24db0d5919

View file

@ -62,7 +62,7 @@ def search_contents_generic(filepath, content_args):
return
content_args['text'] = text
content_args['line_numbers'] = True
content_args['line_numbers'] = content_args.get('line_numbers', True)
results = search(**content_args)
results = list(results)