From 2f54c13292af053ec00c18e5fded87b1bc602822 Mon Sep 17 00:00:00 2001 From: Jiri Slaby Date: Sat, 4 Nov 2023 09:39:54 +0100 Subject: [PATCH] runtime(script.vim): make strace ft check less strict (#13482) Strace output, depending on parameters (-ttf this time), can dump both times and pid: 1038 07:14:20.959262 execve("./e.py", ["./e.py"], 0x7ffca1422840 /* 51 vars */) = 0 <0.000150> So loose the regexp matching this, so that the above is matched too. Fixes #13481. Co-authored-by: Jiri Slaby (SUSE) Signed-off-by: Christian Brabandt --- runtime/autoload/dist/script.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/autoload/dist/script.vim b/runtime/autoload/dist/script.vim index 8de8296ee4..1685093d54 100644 --- a/runtime/autoload/dist/script.vim +++ b/runtime/autoload/dist/script.vim @@ -369,7 +369,7 @@ def DetectFromText(line1: string) # Strace # inaccurate fast match first, then use accurate slow match - elseif (line1 =~ 'execve(' && line1 =~ '^[0-9:.]* *execve(') + elseif (line1 =~ 'execve(' && line1 =~ '^[0-9:. ]*execve(') || line1 =~ '^__libc_start_main' setl ft=strace