64313Issue 53 in vim: wincmd inside of if block
- Feb 29, 2012Status: New
Labels: Type-Defect Priority-Medium
New issue 53 by marcmo...@...: wincmd inside of if block
- 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
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
- Next post in topic >>