changeset 33706:7eca15861c0c

runtime(script.vim): make strace ft check less strict (#13482) Commit: https://github.com/vim/vim/commit/2f54c13292af053ec00c18e5fded87b1bc602822 Author: Jiri Slaby <jirislaby@gmail.com> Date: Sat Nov 4 09:39:54 2023 +0100 runtime(script.vim): make strace ft check less strict (https://github.com/vim/vim/issues/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) <jirislaby@kernel.org> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Sat, 04 Nov 2023 09:45:05 +0100
parents f3b23d61c699
children 6e5d35187e4e
files runtime/autoload/dist/script.vim
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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