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

Re: %! item in 'statusline' option causes an error.

Expand Messages
  • Yukihiro Nakadaira
    ... Actually this script cannot reproduce an error. More lines are required. set statusline=%!MyStatusLine() set laststatus=2 function MyStatusLine() return
    Message 1 of 6 , Nov 3, 2009
    • 0 Attachment
      > set statusline=%!MyStatusLine()
      > set laststatus=2
      > function MyStatusLine()
      > return ""
      > endfunction

      Actually this script cannot reproduce an error. More lines are
      required.

      set statusline=%!MyStatusLine()
      set laststatus=2
      function MyStatusLine()
      return ""
      endfunction

      " count up breakcheck_count of misc1.c
      call substitute('x', 'x', 'x', '')
      call substitute('x', 'x', 'x', '')
      call substitute('x', 'x', 'x', '')
      ...
      ... depends on compiler flag or locale or something.

      And when this line is executed
      main.c:main_loop()
      1147 showruler(FALSE);
      breakcheck_count must be "breakcheck_count >= BREAKCHECK_SKIP - 1".

      And run vim many times.

      for i in 1 2 3 4 5 6 7 8 9 10; do
      ./vim -u NONE -S vimrc.vim -g
      done

      One of them might show an error.


      --
      Yukihiro Nakadaira - yukihiro.nakadaira@...



      --~--~---------~--~----~------------~-------~--~----~
      You received this message from the "vim_dev" maillist.
      For more information, visit http://www.vim.org/maillist.php
      -~----------~----~----~----~------~----~------~--~---
    Your message has been successfully submitted and would be delivered to recipients shortly.