lambdalisue/vim-gina

Cannot toggle modified if [color "status"] is set in .gitconfig

Open

#175 aberto em 13 de ago. de 2018

Ver no GitHub
 (1 comment) (0 reactions) (0 assignees)Vim Script (28 forks)github user discovery
bughelp wanted

Métricas do repositório

Stars
 (688 stars)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

I cannot toggle files in the full version of :Gina status when [color "status"] is set in ~/.gitconfig. But it works fine for :Gina status -s. This only occurs in Modified files also If I try to toggle a new file it works fine in either mode.

I have to remove the entire [color "status"] section for it to work correctly. I suspect that adding colours adds characters to format the text.

.gitconfig

[alias]
  ch = checkout
  co = commit
  ca = commit --all
  caa = commit --all --amend
  sh = push
  sho = push origin
  ll = pull --rebase
  a = add
  aa = add --all
  s = status -sbu
  f = fetch
  fo = fetch origin
  d = diff
  ri = rebase --interactive
  rc = rebase --continue
  lg = log --graph --date=relative -10
  shom = push origin master
  reset-last-soft = reset --soft HEAD~1
  reset-last-hard = reset --hard HEAD~1
[core]
  excludesfile = ~/.config/git/gitignore
  autocrlf = input
  editor=nvim
  whitespace = space-before-tab,tab-in-indent,trailing-space
  pager = diff-so-fancy | less --tabs=4 -RFX
[color]
  ui = auto
[color "status"]
  header = cyan
  branch = white
  changed = yellow
  added = green
  untracked = cyan
[format]
  pretty = %Cred%h%Creset %aN -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset
[difftool]
  prompt = true
[merge]
  tool = nvimdiff
  conflictstyle = diff3
  ff = only
[diff]
  tool = vimdiff
  algorithm = histogram
[mergetool "nvimdiff"]
  prompt = false
  keepBackup = false
  cmd = nvim -d $BASE $LOCAL $REMOTE $MERGED -c '$wincmd w' -c 'wincmd J'
[filter "media"]
  clean = git-media-clean %f
  smudge = git-media-smudge %f
[apply]
  whitespace = fix
[push]
  default = current
[branch]
  autosetuprebase = always
[commit]
  template = ~/.config/git/gitmessage
[fetch]
  prune = true
[rebase]
  autosquash = true

Thanks!

Guia do colaborador