Explorar o código

Reset colors for git show

Simon Weil %!s(int64=9) %!d(string=hai) anos
pai
achega
c1f9d7cdb4
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      plug.vim

+ 1 - 1
plug.vim

@@ -2057,7 +2057,7 @@ function! s:preview_commit()
   execute 'pedit' sha
   execute 'pedit' sha
   wincmd P
   wincmd P
   setlocal filetype=git buftype=nofile nobuflisted modifiable
   setlocal filetype=git buftype=nofile nobuflisted modifiable
-  execute 'silent read !cd' s:shellesc(g:plugs[name].dir) '&& git show --pretty=medium' sha
+  execute 'silent read !cd' s:shellesc(g:plugs[name].dir) '&& git show --no-color --pretty=medium' sha
   normal! gg"_dd
   normal! gg"_dd
   setlocal nomodifiable
   setlocal nomodifiable
   nnoremap <silent> <buffer> q :q<cr>
   nnoremap <silent> <buffer> q :q<cr>