Bug in echoerr from _vimrc in Win32?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug in echoerr from _vimrc in Win32?

Cyril Slobin-4

Hi!

If some messages are echoed from _vimrc in Win32 GUI version of Vim,
they are displayed in a separate message window (GUI has not yet
started). Everything is OK for 'echo' and 'echomsg', but, if at least
one 'echoerr' command was executed, the very last message doesn't
appear in the window. An important particular case: is 'echoerr' was
the only message, it doesn't appear. But what is most surprising: when
I copy the content of the message window, the lost line is there! I
don't see it in the window, but can be copied into clipboard.

Example: the following lines are put at the end of _vimrc:

echoerr "one"
echoerr "two"
echomsg "three"
echomsg "four"
echomsg "five"

On the start of gvim, the error window appears with the following text:

Error detected while processing c:\Program Files\Vim\_vimrc:

line  490:

one

line  491:

two

three

four

five

But I see the line "five" in the clipboard only, I don't see it in the
window itself! Maybe important: there are no newline after "five" in
the clipboard. And yes, without 'echoerr' commands all the messages
(including the last one) are properly displayed.

gVim for Win32, versions 7.2.102 and 7.2.141.

--
http://slobin.pp.ru/ `When I use a word,' Humpty Dumpty said,
<[hidden email]> `it means just what I choose it to mean'

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply | Threaded
Open this post in threaded view
|

Re: Bug in echoerr from _vimrc in Win32?

Bram Moolenaar


Cyril Slobin wrote:

> If some messages are echoed from _vimrc in Win32 GUI version of Vim,
> they are displayed in a separate message window (GUI has not yet
> started). Everything is OK for 'echo' and 'echomsg', but, if at least
> one 'echoerr' command was executed, the very last message doesn't
> appear in the window. An important particular case: is 'echoerr' was
> the only message, it doesn't appear. But what is most surprising: when
> I copy the content of the message window, the lost line is there! I
> don't see it in the window, but can be copied into clipboard.
>
> Example: the following lines are put at the end of _vimrc:
>
> echoerr "one"
> echoerr "two"
> echomsg "three"
> echomsg "four"
> echomsg "five"
>
> On the start of gvim, the error window appears with the following text:
>
> Error detected while processing c:\Program Files\Vim\_vimrc:
>
> line  490:
>
> one
>
> line  491:
>
> two
>
> three
>
> four
>
> five
>
> But I see the line "five" in the clipboard only, I don't see it in the
> window itself! Maybe important: there are no newline after "five" in
> the clipboard. And yes, without 'echoerr' commands all the messages
> (including the last one) are properly displayed.
>
> gVim for Win32, versions 7.2.102 and 7.2.141.

Thanks for the description.  I'll put it in the todo list.

--
$ echo pizza > /dev/oven

 /// Bram Moolenaar -- [hidden email] -- 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_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---