From bd010f1b31d504139a48983d7385ee43a6468b01 Mon Sep 17 00:00:00 2001 From: Alexander Date: Thu, 8 Nov 2018 16:55:57 -0500 Subject: [PATCH] vim: Fix edge case in GitGrep function --- vim/vimrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vim/vimrc b/vim/vimrc index 95d7955..cb54a01 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -149,6 +149,10 @@ function! GitGrep(word) abort let qfitems = [] for m in matches let items = split(m, ':') + " Rare case that we match a binary file + if len(items) < 3 + continue + endif let d = { \'filename': items[0], \'lnum': items[1], -- libgit2 0.28.4