summaryrefslogtreecommitdiff
path: root/runtime/autoload/xmlcomplete.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2006-03-19 22:11:16 +0000
committerBram Moolenaar <Bram@vim.org>2006-03-19 22:11:16 +0000
commitc15ef30c08fa1f2c52053c6345ded69d6f2bc701 (patch)
tree9eba0cff591216ac2b5c2ea48de4a855f5628b28 /runtime/autoload/xmlcomplete.vim
parente0fa560e6f77181969c16333f357c168eff16fd4 (diff)
downloadvim-git-c15ef30c08fa1f2c52053c6345ded69d6f2bc701.tar.gz
updated for version 7.0229
Diffstat (limited to 'runtime/autoload/xmlcomplete.vim')
-rw-r--r--runtime/autoload/xmlcomplete.vim5
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