Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 53 by [email protected]: wincmd inside of if block
http://code.google.com/p/vim/issues/detail?id=53

- What steps will reproduce the problem?
:if 0 | wincmd p | endif

- What is the expected output? What do you see instead?
It is expected that the comand executes and return to normal mode. Instead it remains in command mode waiting for 'endif'.
The fault doesn't happen with the following commands:

:if 1 | wincmd p | endif

:if 0 | exe "wincmd p" | endif

In the documentation there is a patch that solves a similar problem, which is possibly incomplete:

    Patch 6.1.177 (depends on 6.1.141)
    Problem:    ":wincmd" does not allow a following command. (Gary Johnson)
Solution: Check for a following " | cmd". Also give an error for trailing
           characters.
    Files:          src/ex_docmd.c

Best regards,
mMontu

--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui