[Vim-latex-cvs] vimfiles/plugin imaps.vim,1.14,1.15
Brought to you by:
srinathava,
tmaas
From: <sri...@us...> - 2002-12-30 10:54:52
|
Update of /cvsroot/vim-latex/vimfiles/plugin In directory sc8-pr-cvs1:/tmp/cvs-serv405 Modified Files: imaps.vim Log Message: Bug: When we trigger a mapping near the end of the line, things go bad. Cause: The "marker" or the "very improbable string" which is used by IMAP_PutTextWithMovement() to mark the beginning of the left-hand side contains spaces! This causes expansions near the end of a line to trigger line breaks (if 'fo' contains t, which is default and tw != 0), so that the marker text is broken across lines... Havoc ensues. Solution: remove spaces from marker text. Index: imaps.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/plugin/imaps.vim,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** imaps.vim 24 Dec 2002 12:51:06 -0000 1.14 --- imaps.vim 30 Dec 2002 10:54:49 -0000 1.15 *************** *** 8,12 **** " while preserving filetype indentation. " ! " Last Change: Tue Dec 24 04:00 AM 2002 PST " " Documentation: {{{ --- 8,12 ---- " while preserving filetype indentation. " ! " Last Change: Mon Dec 30 02:00 AM 2002 PST " " Documentation: {{{ *************** *** 269,273 **** " A very rare string: Do not use any special characters here. This is used " for moving to the beginning of the inserted text. ! let marker = '<!--- @#% Start Here @#% ----!>' let markerLength = strlen(marker) --- 269,273 ---- " A very rare string: Do not use any special characters here. This is used " for moving to the beginning of the inserted text. ! let marker = '<!---@#%_Start_Here_@#%----!>' let markerLength = strlen(marker) |