Anton Woellert wrote:
> both snippets result in different behaviour, if you put *just* these in
> your vimrc and press f2/f3 in insert mode:
>
>
> 1:
> inoremap <silent> <F2> <C-r>=TestFuncA()<CR>
>
> function! TestFuncA()
> let foobar = input("tes\nt")
> return "X\<c-\>\<c-n>:echo \"Foobar\"\<cr>\"_s"
> endfunction
>
> 2:
> inoremap <silent> <F3> <C-r>=TestFuncB()<CR>
>
> function! TestFuncB()
> let foobar = input("test")
> return "X\<c-\>\<c-n>:echo \"Foobar\"\<cr>\"_s"
> endfunction
>
> only difference is the linebreak in the input command. The 1. will leave
> a " in the text. Some settings in .vimrc seem to prevent this behaviour,
> so you should try it without any settings.
> I came to this problem because of strange behaviour of vim-latexsuite.
> This bug exists with 7.0 and 7.1.
> I guess the problem lies in the implementation of f_input in eval.c
> because it does some msg_* stuff when a newline is there in the input
> text and this seems to change the state somehow, but I'm not sure :(.
>
> Maybe you can help me. Thanks a lot.
Weird. I'll put it in the todo list. Don't expect this to be fixed
soon though.
--
Rule #1: Don't give somebody a tool that he's going to hurt himself with.
/// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ download, build and distribute -- http://www.A-A-P.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---