Skip to content

Commit

Permalink
ftplugin/spec.vim: Revert change dropping <SID> from SpecChangelog
Browse files Browse the repository at this point in the history
Without this it will return an error when creating a new changelog
entry:
"Unknown function: SpecChangelog"
  • Loading branch information
bcl committed Oct 21, 2021
1 parent 94e7d34 commit a403350
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions runtime/ftplugin/spec.vim
Expand Up @@ -18,8 +18,8 @@ if !exists("no_plugin_maps") && !exists("no_spec_maps")
endif
endif

if !hasmapto("call SpecChangelog(\"\")<CR>")
noremap <buffer> <unique> <script> <Plug>SpecChangelog :call SpecChangelog("")<CR>
if !hasmapto("call <SID>SpecChangelog(\"\")<CR>")
noremap <buffer> <unique> <script> <Plug>SpecChangelog :call <SID>SpecChangelog("")<CR>
endif

if !exists("*s:GetRelVer")
Expand All @@ -41,8 +41,8 @@ else:
headers = spec.sourceHeader
version = headers["Version"]
release = headers["Release"]
vim.command("let ver = " + version)
vim.command("let rel = " + release)
vim.command("let ver = '" + version + "'")
vim.command("let rel = '" + release + "'")
PYEND
endif
endfunction
Expand Down

0 comments on commit a403350

Please sign in to comment.