So i have following small test case
vnoremap <silent> d :<C-u>call Test()<cr>
vnoremap <silent> e :<C-u>call Test2()<cr>
fun! AskUser()
let v = input('is this really ok with you? (y/n) ')
redraw
return v
endfun
fun! Test() range
call AskUser()
if 1
echo 'hi hi hi'
echo 'hi hi hi'
endif
endfun
fun! Test2() range
call AskUser()
echo 'hi hi hi'
echo 'hi hi hi'
endfun
So can anyone explain why visual mode d keybinding fails to show any message at all while e keybinding works without problem
Note the problem is not related to keybinding at all but to a fact that there is if statement after call to input function
I've tested it on MacVim and terminal vim on linux on latest vim versions compiled from mercurial source code and all have this problem
UPDATE: Some ppl didn't understood what the problem is. Well to be explained in details when you hit d in visual mode you get a input prompt and when you answer it you don't see any messages in command line while when you hit e and answer the prompt you see message hi hi hi twice in a row and 'Press ENTER or type command to continue' message
echomessages are printed withVIM - Vi IMproved 7.3in Linux.hi hi hifor me with GVIM 7.3.000; please state the full version (inclusive patch number) instead of latest; patches are posted almost daily.