Rename diff_* into git_diff_*.
This commit is contained in:
parent
da2cc1ac3c
commit
27f19fdd91
|
@ -1,17 +1,17 @@
|
|||
declare-option -docstring "name of the client in which documentation is to be displayed" \
|
||||
str docsclient
|
||||
|
||||
declare-option -docstring "diff added character" \
|
||||
str diff_add_char "▏"
|
||||
declare-option -docstring "git diff added character" \
|
||||
str git_diff_add_char "▏"
|
||||
|
||||
declare-option -docstring "diff modified character" \
|
||||
str diff_mod_char "▏"
|
||||
declare-option -docstring "git diff modified character" \
|
||||
str git_diff_mod_char "▏"
|
||||
|
||||
declare-option -docstring "diff deleted character" \
|
||||
str diff_del_char "_"
|
||||
declare-option -docstring "git diff deleted character" \
|
||||
str git_diff_del_char "_"
|
||||
|
||||
declare-option -docstring "diff top deleted character" \
|
||||
str diff_top_char "‾"
|
||||
declare-option -docstring "git diff top deleted character" \
|
||||
str git_diff_top_char "‾"
|
||||
|
||||
hook -group git-log-highlight global WinSetOption filetype=git-log %{
|
||||
require-module diff
|
||||
|
@ -182,10 +182,10 @@ define-command -params 1.. \
|
|||
git --no-pager diff --no-ext-diff -U0 "$kak_buffile" | perl -e '
|
||||
use utf8;
|
||||
$flags = $ENV{"kak_timestamp"};
|
||||
$add_char = $ENV{"kak_opt_diff_add_char"};
|
||||
$del_char = $ENV{"kak_opt_diff_del_char"};
|
||||
$top_char = $ENV{"kak_opt_diff_top_char"};
|
||||
$mod_char = $ENV{"kak_opt_diff_mod_char"};
|
||||
$add_char = $ENV{"kak_opt_git_diff_add_char"};
|
||||
$del_char = $ENV{"kak_opt_git_diff_del_char"};
|
||||
$top_char = $ENV{"kak_opt_git_diff_top_char"};
|
||||
$mod_char = $ENV{"kak_opt_git_diff_mod_char"};
|
||||
foreach $line (<STDIN>) {
|
||||
if ($line =~ /@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))?/) {
|
||||
$from_line = $1;
|
||||
|
|
Loading…
Reference in New Issue
Block a user