Loading ...
Sorry, an error occurred while loading the content.

43364RE: echo message missing

Expand Messages
  • Bram Moolenaar
    May 2, 2006
    • 0 Attachment
      Robert Webb wrote:

      > > Will inserting "redraw" command before echo help ? Like this:
      > >
      > > func! SaveSession()
      > > mksession! aaaSession.vse
      > > redraw
      > > echo "Session saved"
      > > endfunction
      >
      > You're right, this fixes it. Thanks.
      > But is it a bug still that the echo message is lost due
      > to a redraw caused by an earlier command? Maybe when echo
      > goes to the screen, any pending redraw should be carried
      > out first?

      A redraw may actually clear a message. This is tricky stuff. It's
      better to leave it as it is, otherwise the scripts that were carefully
      tuned with how it currently works will break.

      --
      Westheimer's Discovery:
      A couple of months in the laboratory can
      frequently save a couple of hours in the library.

      /// Bram Moolenaar -- Bram@... -- 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 ///
    • Show all 5 messages in this topic