Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite
In directory sc8-pr-cvs1:/tmp/cvs-serv22957
Modified Files:
envmacros.vim
Log Message:
Tex_DoEnvironment: If in current line is more than one word or in visual mode ignore contents of line and prompt for environment
Index: envmacros.vim
===================================================================
RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/envmacros.vim,v
retrieving revision 1.38
retrieving revision 1.39
diff -C2 -d -r1.38 -r1.39
*** envmacros.vim 23 Oct 2003 01:45:39 -0000 1.38
--- envmacros.vim 11 Nov 2003 15:37:11 -0000 1.39
***************
*** 530,534 ****
if a:0 < 1
let env = matchstr(getline('.'), '^\s*\zs\w*\*\=\ze\s*$')
! if env == ''
let env = PromptForEnvironment('Choose which environment to insert: ')
if env != ''
--- 530,536 ----
if a:0 < 1
let env = matchstr(getline('.'), '^\s*\zs\w*\*\=\ze\s*$')
! " If in current line is more than one word or in visual mode
! " ignore contents of line and prompt for environment
! if env == '' || (exists('s:isvisual') && s:isvisual == 'yes')
let env = PromptForEnvironment('Choose which environment to insert: ')
if env != ''
|