Hi Bjorn,

I found a weird problem in MacVim (it does not occur in console Vim).
I have a script to echo the function prototype when "(" is pressed:

http://www.vim.org/scripts/script.php?script_id=1735

In MacVim, I find that in certain cases nothing is echoed. This always
occurs when the script increases cmdheight to display content that is
more than one line. I reproduced this behaviour with the following
steps:

1) Rename my ~/.vim/plugin so that my scripts do not interfere.

2) Open a new MacVim window.

3) Enter ":so test.vim", while test.vim contains the following lines:
----------------------------------------------
function! TestFunc()
  let &cmdheight=2
  echo "Ha ha"
  return ''
endfunction

inoremap ( (<c-r>=TestFunc()<cr>
----------------------------------------------

4) The first time I press "(", cmdheight increases, but nothing is
displayed. After that, "Ha ha" can be seen.

I looks to me a bug in MacVim. Can you have a look?

Thanks.

Best regards,

Yongwei

--
Wu Yongwei
URL: http://wyw.dcweb.cn/

-- 
You received this message from the "vim_mac" 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

Reply via email to