From 96a4520c9cee5ff9d7f2fe63e40657040420f99e Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Fri, 1 Jan 2021 16:22:18 -0800 Subject: [PATCH] Let generic text search always show line numbers. --- search.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/search.py b/search.py index 5cb8bfe..d704d39 100644 --- a/search.py +++ b/search.py @@ -66,7 +66,7 @@ def search_contents_generic(filepath, content_args): return content_args['text'] = text - content_args['line_numbers'] = content_args.get('line_numbers', True) + content_args['line_numbers'] = True results = search(**content_args) results = list(results)