plugin/gerrvim.vim | 2 +- diff --git a/plugin/gerrvim.vim b/plugin/gerrvim.vim index 426e690a157e28b51a93abb41243cc2a00afa471..2328d1ebe899ab72fb6dfd023b361296d3ca6e46 100644 --- a/plugin/gerrvim.vim +++ b/plugin/gerrvim.vim @@ -43,7 +43,7 @@ " Place commented signs 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