From 768f52319212b6e2964e4f11d1baf7092066d504 Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Mon, 4 Feb 2019 17:46:12 +0100 Subject: [PATCH] Fossil: fix detection of deleted lines (second try) References https://github.com/mhinz/vim-signify/issues/282 --- autoload/sy/sign.vim | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/autoload/sy/sign.vim b/autoload/sy/sign.vim index b792a62..a316269 100644 --- a/autoload/sy/sign.vim +++ b/autoload/sy/sign.vim @@ -70,6 +70,11 @@ function! sy#sign#process_diff(sy, vcs, diff) abort let old_count = empty(tokens[2]) ? 1 : str2nr(tokens[2]) let new_count = empty(tokens[4]) ? 1 : str2nr(tokens[4]) + " https://fossil-scm.org/forum/forumpost/834ce0f1e1 + if a:vcs == 'fossil' && new_line == 0 + let new_line = old_line - 1 - deleted + endif + " 2 lines added: " @@ -5,0 +6,2 @@ this is line 5