diff options
author | Bram Moolenaar <Bram@vim.org> | 2006-03-19 22:11:16 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2006-03-19 22:11:16 +0000 |
commit | c15ef30c08fa1f2c52053c6345ded69d6f2bc701 (patch) | |
tree | 9eba0cff591216ac2b5c2ea48de4a855f5628b28 /runtime/autoload/xmlcomplete.vim | |
parent | e0fa560e6f77181969c16333f357c168eff16fd4 (diff) | |
download | vim-git-c15ef30c08fa1f2c52053c6345ded69d6f2bc701.tar.gz |
updated for version 7.0229
Diffstat (limited to 'runtime/autoload/xmlcomplete.vim')
-rw-r--r-- | runtime/autoload/xmlcomplete.vim | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/runtime/autoload/xmlcomplete.vim b/runtime/autoload/xmlcomplete.vim index 6b7b804e3..2551cae30 100644 --- a/runtime/autoload/xmlcomplete.vim +++ b/runtime/autoload/xmlcomplete.vim @@ -1,7 +1,7 @@ " Vim completion script " Language: XML " Maintainer: Mikolaj Machowski ( mikmach AT wp DOT pl ) -" Last Change: 2006 Feb 18 +" Last Change: 2006 Mar 19 " This function will create Dictionary with users namespace strings and values " canonical (system) names of data files. Names should be lowercase, @@ -81,8 +81,9 @@ function! xmlcomplete#CompleteTags(findstart, base) let context_lines = getline(curline-i, curline) let b:compl_context = join(context_lines, ' ') break - elseif context_line =~ '>[^<]*$' + elseif context_line =~ '>[^<]*$' || i == curline " Normal tag line, no need for completion at all + " OR reached first line without tag at all let b:compl_context = '' break endif |