Don't overwrite user-provided line_numbers for content_args.
This commit is contained in:
parent
466a2be733
commit
24db0d5919
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ def search_contents_generic(filepath, content_args):
|
||||||
return
|
return
|
||||||
|
|
||||||
content_args['text'] = text
|
content_args['text'] = text
|
||||||
content_args['line_numbers'] = True
|
content_args['line_numbers'] = content_args.get('line_numbers', True)
|
||||||
|
|
||||||
results = search(**content_args)
|
results = search(**content_args)
|
||||||
results = list(results)
|
results = list(results)
|
||||||
|
|
Loading…
Reference in a new issue