Skip to content
Snippets Groups Projects
Commit 3a3a7234 authored by Bram Moolenaar's avatar Bram Moolenaar
Browse files

updated for version 7.0041

parent f3bae693
No related merge requests found
This diff is collapsed.
...@@ -1172,11 +1172,16 @@ ex_endwhile(eap) ...@@ -1172,11 +1172,16 @@ ex_endwhile(eap)
fl = cstack->cs_flags[cstack->cs_idx]; fl = cstack->cs_flags[cstack->cs_idx];
if (!(fl & csf)) if (!(fl & csf))
{ {
/* If we are in a ":while" or ":for" but used the wrong endloop
* command, do not rewind to the next enclosing ":for"/":while". */
if (fl & CSF_WHILE) if (fl & CSF_WHILE)
eap->errmsg = (char_u *)_("E999: Using :endfor with :while"); eap->errmsg = (char_u *)_("E732: Using :endfor with :while");
else if (fl & CSF_FOR) else if (fl & CSF_FOR)
eap->errmsg = (char_u *)_("E999: Using :endwhile with :for"); eap->errmsg = (char_u *)_("E733: Using :endwhile with :for");
else if (!(fl & CSF_TRY)) }
if (!(fl & (CSF_WHILE | CSF_FOR)))
{
if (!(fl & CSF_TRY))
eap->errmsg = e_endif; eap->errmsg = e_endif;
else if (fl & CSF_FINALLY) else if (fl & CSF_FINALLY)
eap->errmsg = e_endtry; eap->errmsg = e_endtry;
......
...@@ -36,5 +36,5 @@ ...@@ -36,5 +36,5 @@
#define VIM_VERSION_NODOT "vim70aa" #define VIM_VERSION_NODOT "vim70aa"
#define VIM_VERSION_SHORT "7.0aa" #define VIM_VERSION_SHORT "7.0aa"
#define VIM_VERSION_MEDIUM "7.0aa ALPHA" #define VIM_VERSION_MEDIUM "7.0aa ALPHA"
#define VIM_VERSION_LONG "VIM - Vi IMproved 7.0aa ALPHA (2004 Jan 16)" #define VIM_VERSION_LONG "VIM - Vi IMproved 7.0aa ALPHA (2004 Jan 17)"
#define VIM_VERSION_LONG_DATE "VIM - Vi IMproved 7.0aa ALPHA (2004 Jan 16, compiled " #define VIM_VERSION_LONG_DATE "VIM - Vi IMproved 7.0aa ALPHA (2004 Jan 17, compiled "
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment