Show number of deleted lines
This commit is contained in:
parent
efe747fda6
commit
7895cb92eb
@ -336,7 +336,7 @@ function! s:repo_process_diff(path, diff) abort
|
|||||||
if new_line == 0
|
if new_line == 0
|
||||||
call s:sign_set(1, 'SignifyDeleteFirstLine', a:path)
|
call s:sign_set(1, 'SignifyDeleteFirstLine', a:path)
|
||||||
else
|
else
|
||||||
call s:sign_set(new_line, 'SignifyDelete', a:path)
|
call s:sign_set(new_line, (old_count > 9) ? 'SignifyDeleteMore' : 'SignifyDelete'. old_count, a:path)
|
||||||
endif
|
endif
|
||||||
" A line was changed.
|
" A line was changed.
|
||||||
elseif (old_count == new_count)
|
elseif (old_count == new_count)
|
||||||
@ -462,7 +462,16 @@ function! s:line_highlighting_enable() abort
|
|||||||
execute 'sign define SignifyAdd text='. s:sign_add .' texthl=SignifyAdd linehl='. s:line_color_add
|
execute 'sign define SignifyAdd text='. s:sign_add .' texthl=SignifyAdd linehl='. s:line_color_add
|
||||||
execute 'sign define SignifyChange text='. s:sign_change .' texthl=SignifyChange linehl='. s:line_color_change
|
execute 'sign define SignifyChange text='. s:sign_change .' texthl=SignifyChange linehl='. s:line_color_change
|
||||||
execute 'sign define SignifyChangeDelete text='. s:sign_change_delete .' texthl=SignifyChange linehl='. s:line_color_change
|
execute 'sign define SignifyChangeDelete text='. s:sign_change_delete .' texthl=SignifyChange linehl='. s:line_color_change
|
||||||
execute 'sign define SignifyDelete text='. s:sign_delete .' texthl=SignifyDelete linehl='. s:line_color_delete
|
execute 'sign define SignifyDelete1 text='. s:sign_delete .'1 texthl=SignifyDelete linehl='. s:line_color_delete
|
||||||
|
execute 'sign define SignifyDelete2 text='. s:sign_delete .'2 texthl=SignifyDelete linehl='. s:line_color_delete
|
||||||
|
execute 'sign define SignifyDelete3 text='. s:sign_delete .'3 texthl=SignifyDelete linehl='. s:line_color_delete
|
||||||
|
execute 'sign define SignifyDelete4 text='. s:sign_delete .'4 texthl=SignifyDelete linehl='. s:line_color_delete
|
||||||
|
execute 'sign define SignifyDelete5 text='. s:sign_delete .'5 texthl=SignifyDelete linehl='. s:line_color_delete
|
||||||
|
execute 'sign define SignifyDelete6 text='. s:sign_delete .'6 texthl=SignifyDelete linehl='. s:line_color_delete
|
||||||
|
execute 'sign define SignifyDelete7 text='. s:sign_delete .'7 texthl=SignifyDelete linehl='. s:line_color_delete
|
||||||
|
execute 'sign define SignifyDelete8 text='. s:sign_delete .'8 texthl=SignifyDelete linehl='. s:line_color_delete
|
||||||
|
execute 'sign define SignifyDelete9 text='. s:sign_delete .'9 texthl=SignifyDelete linehl='. s:line_color_delete
|
||||||
|
execute 'sign define SignifyDeleteMore text='. s:sign_delete .'# texthl=SignifyDelete linehl='. s:line_color_delete
|
||||||
execute 'sign define SignifyDeleteFirstLine text='. s:sign_delete_first_line .' texthl=SignifyDelete linehl='. s:line_color_delete
|
execute 'sign define SignifyDeleteFirstLine text='. s:sign_delete_first_line .' texthl=SignifyDelete linehl='. s:line_color_delete
|
||||||
|
|
||||||
let s:line_highlight = 1
|
let s:line_highlight = 1
|
||||||
@ -473,7 +482,16 @@ function! s:line_highlighting_disable() abort
|
|||||||
execute 'sign define SignifyAdd text='. s:sign_add .' texthl=SignifyAdd linehl=none'
|
execute 'sign define SignifyAdd text='. s:sign_add .' texthl=SignifyAdd linehl=none'
|
||||||
execute 'sign define SignifyChange text='. s:sign_change .' texthl=SignifyChange linehl=none'
|
execute 'sign define SignifyChange text='. s:sign_change .' texthl=SignifyChange linehl=none'
|
||||||
execute 'sign define SignifyChangeDelete text='. s:sign_change_delete .' texthl=SignifyChange linehl=none'
|
execute 'sign define SignifyChangeDelete text='. s:sign_change_delete .' texthl=SignifyChange linehl=none'
|
||||||
execute 'sign define SignifyDelete text='. s:sign_delete .' texthl=SignifyDelete linehl=none'
|
execute 'sign define SignifyDelete1 text='. s:sign_delete .'1 texthl=SignifyDelete linehl=none'
|
||||||
|
execute 'sign define SignifyDelete2 text='. s:sign_delete .'2 texthl=SignifyDelete linehl=none'
|
||||||
|
execute 'sign define SignifyDelete3 text='. s:sign_delete .'3 texthl=SignifyDelete linehl=none'
|
||||||
|
execute 'sign define SignifyDelete4 text='. s:sign_delete .'4 texthl=SignifyDelete linehl=none'
|
||||||
|
execute 'sign define SignifyDelete5 text='. s:sign_delete .'5 texthl=SignifyDelete linehl=none'
|
||||||
|
execute 'sign define SignifyDelete6 text='. s:sign_delete .'6 texthl=SignifyDelete linehl=none'
|
||||||
|
execute 'sign define SignifyDelete7 text='. s:sign_delete .'7 texthl=SignifyDelete linehl=none'
|
||||||
|
execute 'sign define SignifyDelete8 text='. s:sign_delete .'8 texthl=SignifyDelete linehl=none'
|
||||||
|
execute 'sign define SignifyDelete9 text='. s:sign_delete .'9 texthl=SignifyDelete linehl=none'
|
||||||
|
execute 'sign define SignifyDeleteMore text='. s:sign_delete .'# texthl=SignifyDelete linehl=none'
|
||||||
execute 'sign define SignifyDeleteFirstLine text='. s:sign_delete_first_line .' texthl=SignifyDelete linehl=none'
|
execute 'sign define SignifyDeleteFirstLine text='. s:sign_delete_first_line .' texthl=SignifyDelete linehl=none'
|
||||||
|
|
||||||
let s:line_highlight = 0
|
let s:line_highlight = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user