Update of /cvsroot/vim-latex/vimfiles/plugin
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18689
Modified Files:
imaps.vim
Log Message:
Bug: when 'ignorecase' is set, then typing 'etB' triggers an error.
Why: With 'ignorecase' set, 'etB' matches 'ETB', therefore, LookupCharacter
assumes that a map exists for 'etB' and tries to find the value of
s:Map_Tex_etB which doesn't exist.
Fix: Force matching case with the \C pattern.
Index: imaps.vim
===================================================================
RCS file: /cvsroot/vim-latex/vimfiles/plugin/imaps.vim,v
retrieving revision 1.37
retrieving revision 1.38
diff -C2 -d -r1.37 -r1.38
*** imaps.vim 4 Dec 2003 00:06:06 -0000 1.37
--- imaps.vim 4 May 2004 20:50:11 -0000 1.38
***************
*** 224,231 ****
" escaped when building up s:LHS_{&ft}_{charHash} .
if exists("s:LHS_" . &ft . "_" . charHash)
! \ && text =~ '\V\(' . s:LHS_{&ft}_{charHash} . '\)\$'
let ft = &ft
elseif exists("s:LHS__" . charHash)
! \ && text =~ '\V\(' . s:LHS__{charHash} . '\)\$'
let ft = ""
else
--- 224,231 ----
" escaped when building up s:LHS_{&ft}_{charHash} .
if exists("s:LHS_" . &ft . "_" . charHash)
! \ && text =~ "\\C\\V\\(" . s:LHS_{&ft}_{charHash} . "\\)\\$"
let ft = &ft
elseif exists("s:LHS__" . charHash)
! \ && text =~ "\\C\\V\\(" . s:LHS__{charHash} . "\\)\\$"
let ft = ""
else
***************
*** 266,270 ****
" ensures that the longest LHS is used for the mapping.
if !exists('lhs') || !exists('rhs')
! let lhs = matchstr(text, '\V\(' . s:LHS_{ft}_{charHash} . '\)\$')
let hash = s:Hash(lhs)
let rhs = s:Map_{ft}_{hash}
--- 266,270 ----
" ensures that the longest LHS is used for the mapping.
if !exists('lhs') || !exists('rhs')
! let lhs = matchstr(text, "\\C\\V\\(" . s:LHS_{ft}_{charHash} . "\\)\\$")
let hash = s:Hash(lhs)
let rhs = s:Map_{ft}_{hash}
|