Loading ...
Sorry, an error occurred while loading the content.

64321Re: Issue 53 in vim: wincmd inside of if block

Expand Messages
  • Ben Fritz
    Feb 29, 2012
    • 0 Attachment
      Cannot reproduce, with Windows Vim 7.3.434, "Vim without Cream" version.
      Neither gvim nor vim.exe shows this behavior.

      On Wednesday, February 29, 2012 8:51:21 AM UTC-6, (unknown) wrote:
      Status: New
      Owner: ----
      Labels: Type-Defect Priority-Medium

      New issue 53 by marcmo...@...: 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  
           Files:            src/ex_docmd.c

      Best regards,

      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
    • Show all 8 messages in this topic