]> Sergey Matveev's repositories - gerrvim.git/commitdiff
Fix current buffer address getting 0.2
authorSergey Matveev <stargrave@stargrave.org>
Tue, 22 Sep 2015 08:58:54 +0000 (11:58 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Tue, 22 Sep 2015 08:58:54 +0000 (11:58 +0300)
plugin/gerrvim.vim

index 426e690a157e28b51a93abb41243cc2a00afa471..2328d1ebe899ab72fb6dfd023b361296d3ca6e46 100644 (file)
@@ -43,7 +43,7 @@ function! s:Gerrvim() range
     sign define commented text=C texthl=Search
     for linen in range(a:firstline, a:lastline)
         let cmd = ":sign place " . linen . " line=" . linen
-        let cmd .= " name=commented buffer=" . bufnr(".")
+        let cmd .= " name=commented buffer=" . bufnr("%")
         execute cmd
     endfor
     " Spawn a new small code commenting window nonbinded to file