commit e960fa2412948bfc8f059bff9ddb5397d7ee35d7
parent 9281edb334a374e7753d4a6b7a05e31120e39772
Author: Christian Clason <c.clason@uni-graz.at>
Date: Sat, 4 Nov 2023 11:40:10 +0100
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.
https://github.com/vim/vim/commit/2f54c13292af053ec00c18e5fded87b1bc602822
Co-authored-by: Jiri Slaby <jirislaby@gmail.com>
Co-authored-by: Jiri Slaby (SUSE) <jirislaby@kernel.org>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/runtime/lua/vim/filetype/detect.lua b/runtime/lua/vim/filetype/detect.lua
@@ -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'