]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(script.vim): make strace ft check less strict (#13482)
authorJiri Slaby <jirislaby@gmail.com>
Sat, 4 Nov 2023 08:39:54 +0000 (09:39 +0100)
committerGitHub <noreply@github.com>
Sat, 4 Nov 2023 08:39:54 +0000 (09:39 +0100)
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) <jirislaby@kernel.org>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/autoload/dist/script.vim

index 8de8296ee441f75ea65c17a31c55017dcbd680a9..1685093d54e22ce8331e34f34309c86088b7d6e3 100644 (file)
@@ -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