vim-patch:2f54c13292af

runtime(script.vim): make strace ft check less strict (vim/vim#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 vim/vim#13481.

2f54c13292

Co-authored-by: Jiri Slaby <jirislaby@gmail.com>
Co-authored-by: Jiri Slaby (SUSE) <jirislaby@kernel.org>
This commit is contained in:
Christian Clason 2023-11-04 11:40:10 +01:00
parent 9281edb334
commit e960fa2412

View File

@ -1798,7 +1798,7 @@ local patterns_text = {
function(lines)
if
-- inaccurate fast match first, then use accurate slow match
(lines[1]:find('execve%(') and lines[1]:find('^[0-9:%.]* *execve%('))
(lines[1]:find('execve%(') and lines[1]:find('^[0-9:%. ]*execve%('))
or lines[1]:find('^__libc_start_main')
then
return 'strace'