projects
/
codecomm.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff238b3
)
Modern Fugitive compatibility
author
Sergey Matveev <stargrave@stargrave.org>
Sun, 31 Oct 2021 14:05:23 +0000 (17:05 +0300)
committer
Sergey Matveev <stargrave@stargrave.org>
Sun, 31 Oct 2021 14:05:23 +0000 (17:05 +0300)
plugin/codecomm.vim
patch
|
blob
|
history
diff --git
a/plugin/codecomm.vim
b/plugin/codecomm.vim
index 27bd890d4be5020c83b604e16a35ccec9d81bcc3..8a38d898978f0fce56cd57ad0f1f1dcd93cc128b 100644
(file)
--- a/
plugin/codecomm.vim
+++ b/
plugin/codecomm.vim
@@
-25,7
+25,7
@@
function! s:CodeComm() range
let g:codecomm_count += 1
" Determine file's path inside repository
let path = expand("%:p")
- let path = substitute(path,
fugitive#extract_git_dir("."
)[:-5], "", "")
+ let path = substitute(path,
FugitiveExtractGitDir(getcwd()
)[:-5], "", "")
let path = substitute(path, "^.*\.git//", "", "")
" Header generation
let header = []