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

59512[BUG] Control characters in 'statusline' produces weird results

Expand Messages
  • ZyX
    Nov 1, 2010
    • 0 Attachment
      That is what I get if I launch vim-7.3.47 with
      vim -u NONE -c 'set laststatus=2' -c 'let &statusline="\t"'
      : http://img-fotki.yandex.ru/get/5404/kp-pav.1/0_52506_b26e0c14_orig.png
      +------------+
      |# |
      |~ |
      |~ |
      | ####|
      |###### |
      +------------+
      (Here `#' means an empty space with white background.)

      There are also problems with other control characters (but these results are not
      so weird):
      1. LF causes statusline to appear on the command line: in a 5x12 window it looks
      like that:
      vim -u NONE -c 'set laststatus=2' -c 'let &statusline="a\nb"'
      +------------+
      |# |
      |~ |
      |~ |
      |a |
      |b######## |
      +------------+
      2. C-o is omitted, but statusline misses two characters:
      vim -u NONE -c 'set laststatus=2' -c 'let &statusline="a\<C-o>b"'
      +------------+
      |# |
      |~ |
      |~ |
      |ab######## |
      | |
      +------------+
      3. CR clears the line, but again some highlighting is missing:
      vim -u NONE -c 'set laststatus=2' -c 'let &statusline="ab\rc"'
      +------------+
      |# |
      |~ |
      |~ |
      |c######## |
      | |
      +------------+
    • Show all 3 messages in this topic