lambdalisue/vim-gina

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

Open

#175 建立於 2018年8月13日

在 GitHub 查看
 (1 留言) (0 反應) (0 負責人)Vim Script (28 fork)github user discovery
bughelp wanted

倉庫指標

Star
 (688 star)
PR 合併指標
 (PR 指標待抓取)

描述

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!

貢獻者指南