diff options
author | Bram Moolenaar <Bram@vim.org> | 2014-03-08 18:38:28 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2014-03-08 18:38:28 +0100 |
commit | 0858917e435af762a32e694eeab710c399a74c24 (patch) | |
tree | cf08f3b5849e7c98518f6e4e6b1cd0b0f266af4c /runtime/ftplugin/spec.vim | |
parent | 4de6a212f922aa132e9a76d0392bee3adfee6e29 (diff) |
Updated runtime files.
Diffstat (limited to 'runtime/ftplugin/spec.vim')
-rw-r--r-- | runtime/ftplugin/spec.vim | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/runtime/ftplugin/spec.vim b/runtime/ftplugin/spec.vim index 9778e1cce3..c3af8a9fca 100644 --- a/runtime/ftplugin/spec.vim +++ b/runtime/ftplugin/spec.vim @@ -1,7 +1,8 @@ " Plugin to update the %changelog section of RPM spec files " Filename: spec.vim -" Maintainer: Gustavo Niemeyer <niemeyer@conectiva.com> -" Last Change: 2012 Mar 07 +" Maintainer: Igor Gnatenko i.gnatenko.brain@gmail.com +" Former Maintainer: Gustavo Niemeyer <niemeyer@conectiva.com> (until March 2014) +" Last Change: Sun Mar 2 11:24 MSK 2014 Igor Gnatenko if exists("b:did_ftplugin") finish @@ -150,6 +151,10 @@ if !exists("*s:ParseRpmVars") execute a:strline let definestr = "^[ \t]*%define[ \t]\\+" . varname . "[ \t]\\+\\(.*\\)$" let linenum = search(definestr, "bW") + if (linenum == 0) + let definestr = substitute(definestr, "%define", "%global", "") + let linenum = search(definestr, "bW") + endif if (linenum != -1) let ret = ret . substitute(getline(linenum), definestr, "\\1", "") else |