On Jul 21, 10:28 pm, Tony Mechelynck <[email protected]>
wrote:
>
> That patch 6.0.252 gives me an idea though: if you put ":if 1" and
> "endif", or failing that "let true = 1 | if true" and ":endif", around
> your ":echoerr", does it make a difference? If it does, then that bugfix
> has come unstuck.
>

Good notion...but it still doesn't seem to work. Out of these:

function! Ech() abort
  let g:var = 0
  if g:var
    echoerr "fooblarg"
  else
    echoerr "blargfoo"
  endif
  let g:var = 99
  echo g:var
endfu

command! Ech
      \ let g:var = 0 |
      \ if g:var |
      \   echoerr "fooblarg" |
      \ else |
      \   echoerr "blargfoo" |
      \ endif |
      \ let g:var = 99 |
      \ echo g:var

map <F8>
      \ :let g:var = 0 \|
      \ if g:var \|
      \   echoerr "fooblarg" \|
      \ else \|
      \   echoerr "blargfoo" \|
      \ endif<CR>
      \ :let g:var = 99 \|
      \ echo g:var<CR>

only the mapping aborts before setting g:var to 99. If I chain the
whole command sequence together in the mapping rather than using two
separate ex command sequences, the mapping also fails to abort.

In case you're curious:

VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Jul 17 2009 08:55:05)
MS-Windows 32-bit GUI version with OLE support
Included patches: 1-234
Compiled by [email protected]
Huge version with GUI.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to