Re: [Vim-latex-cvs] vimfiles/ftplugin/latex-suite envmacros.vim,1.22,1.23
Brought to you by:
srinathava,
tmaas
From: Srinath A. <sr...@fa...> - 2003-01-14 18:42:12
|
On Tue, 14 Jan 2003 mi...@us... wrote: > > - Now you can use two-digit values in SetUpPrompt menus '^[0-9][0-9]$' > I am confused with this... > *************** > *** 530,534 **** > > let inp = input(a:ask.s:common_env_prompt) > ! if inp =~ '^[0-9]$' > let env = Tex_Strntok(g:Tex_PromptedEnvironments, ',', inp) > else > --- 531,535 ---- > > let inp = input(a:ask.s:common_env_prompt) > ! if inp =~ '^[0-9][0-9]$' > let env = Tex_Strntok(g:Tex_PromptedEnvironments, ',', inp) > else Does this mean that if the user has to enter '09' or something similar to say '9'. Dont have time to test but I am reasonably sure this creates a bug. Shouldn't this be: > ! if inp =~ '^[0-9]\+$' ? Please test... Srinath |