From 1f165bbed4c455c88e84be007aeb1214e9cd07fd Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Wed, 20 Oct 2021 22:14:05 +0530 Subject: [PATCH] nvim: autoload/git: Fix the arguments to difftool --- nvim/.config/nvim/autoload/git.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvim/.config/nvim/autoload/git.vim b/nvim/.config/nvim/autoload/git.vim index 55c9bfb..98a5238 100644 --- a/nvim/.config/nvim/autoload/git.vim +++ b/nvim/.config/nvim/autoload/git.vim @@ -107,7 +107,7 @@ function! git#git_diff_commit() abort " A line in Git log is of the form commit let line = trim(getline('.')) let commit = split(line, " ") - silent execute "Git difftool -y " . commit[1] . "^!" + execute "Git difftool -y " . commit[1] . " " . commit[1] . "~1" endfunction " The next two functions allow scoping diffs by line range of a file and named