aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2023-11-04 11:40:10 +0100
committerChristian Clason <c.clason@uni-graz.at>2023-11-04 12:55:25 +0100
commite960fa2412948bfc8f059bff9ddb5397d7ee35d7 (patch)
tree976119ab275d9997d5121a87eef7bb89e4cc1e57
parent9281edb334a374e7753d4a6b7a05e31120e39772 (diff)
downloadrneovim-e960fa2412948bfc8f059bff9ddb5397d7ee35d7.tar.gz
rneovim-e960fa2412948bfc8f059bff9ddb5397d7ee35d7.tar.bz2
rneovim-e960fa2412948bfc8f059bff9ddb5397d7ee35d7.zip
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>
-rw-r--r--runtime/lua/vim/filetype/detect.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/vim/filetype/detect.lua b/runtime/lua/vim/filetype/detect.lua
index 2232183888..5479608148 100644
--- 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'