Monday, August 4, 2014

Re: Weird extra line in messages after first leaving insert mode

Also discovered it only happens in nocompatible mode.

David


On Mon, Aug 4, 2014 at 11:07 PM, David Barnett <daviebdawg@gmail.com> wrote:
I noticed a vim quirk where there's an extra blank line in the :messages output after first entering and leaving insert mode. The next :echomsg after that overwrites the blank line so there's no longer a blank line.

For example:
  vim
  :messages
  Messages maintainer: Bram Moolenaar <Bram@vim.org>
  i<Esc>
  :messages
  Messages maintainer: Bram Moolenaar <Bram@vim.org>

  :echomsg 'Hello'
  Hello
  :messages
  Messages maintainer: Bram Moolenaar <Bram@vim.org>
  Hello

It's a small quirk, but is there any explanation why it's there, and any way to fix it? I noticed it when using a script that scrapes the output of :messages after each command and gets very confused by the fact that messages are randomly added and then removed retrospectively.

David

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

---
You received this message because you are subscribed to a topic in the Google Groups "vim_use" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vim_use/AcGW6UMCbeY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: