From 24db0d59192da21f4a158516ad204a2ed7e8d7a0 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Thu, 1 Oct 2020 20:19:09 -0700 Subject: [PATCH] Don't overwrite user-provided line_numbers for content_args. --- search.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/search.py b/search.py index 81ede87..8ed7f58 100644 --- a/search.py +++ b/search.py @@ -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)