Christian J. Robinson wrote:

> On Fri, 23 Mar 2012, Dominique Pellé wrote:
>
>> Bram Moolenaar wrote:
>>
>>> Patch 7.3.477
>
>
> [ snip ]
>
>
>>   map  <F7>      :call MySpellLang()<CR>
>>   imap <F7> <C-o>:call MySpellLang()<CR>
>
>
> [ snip ]
>
>
>> But after applying patch 7.3.477, pressing <F7> now scrolls the screen one
>> line upward and prints *2* lines at the bottom of the screen saying:
>>
>> :call MySpellLang()
>> language: en_us
>>
>> I don't think that this change was intended or am I missing something?
>
>
> The new behavior is probably what is actually intended.  If you don't want
> to see the :call command, use the <silent> operator for the :map commands.
>  See ":help map-silent".


Hi Christian

It's actually worse if I add <silent>. If I replace lines...

    map  <F7>      :call MySpellLang()<CR>
    imap <F7> <C-o>:call MySpellLang()<CR>

... with...

    map  <silent> <F7>      :call MySpellLang()<CR>
    imap <silent> <F7> <C-o>:call MySpellLang()<CR>

... then when pressing <F7> the screen scrolls by 2 lines
and Vim prints 3 lines at the bottom of the screen:

(an empty line)
language: en_us
Press ENTER or type command to continue

Prior to the patch, it did not scroll the screen and only printed one
line saying:

language: en_us

Regards
-- Dominique

-- 
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

Raspunde prin e-mail lui