commit 0d98fb85489de9128dbad8a014230fb5d40bb998 Author: Juergen Spitzmueller <sp...@lyx.org> Date: Thu Aug 27 12:05:49 2020 +0200
lyxpaperview: take the first match --- lib/scripts/lyxpaperview.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/scripts/lyxpaperview.py b/lib/scripts/lyxpaperview.py index f62c5ea..09256da 100755 --- a/lib/scripts/lyxpaperview.py +++ b/lib/scripts/lyxpaperview.py @@ -84,7 +84,7 @@ def find(args, path): # have this already continue px = subprocess.Popen(['grep', '-i', arg], stdin=px.stdout, stdout=subprocess.PIPE) - p4 = subprocess.Popen(['head', '-n 2'], stdin=px.stdout, stdout=subprocess.PIPE) + p4 = subprocess.Popen(['head', '-n 1'], stdin=px.stdout, stdout=subprocess.PIPE) p1.stdout.close() output = p4.communicate() return output[0].decode("utf8")[:-1]# strip trailing '\n' -- lyx-cvs mailing list lyx-cvs@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-cvs