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

Possible bug in localtion list

Expand Messages
  • Dominique PellĂ©
    Hi Here something which may be a bug with the location list. This works: $ cd vim/src $ vim -u NONE -N -c setlocal errorformat=%f:%l:%c:%m -c laddexpr
    Message 1 of 1 , Sep 2, 2010
    • 0 Attachment
      Hi

      Here something which may be a bug with the location list.

      This works:

      $ cd vim/src
      $ vim -u NONE -N \
      -c 'setlocal errorformat=%f:%l:%c:%m' \
      -c 'laddexpr "buffer.c:2:1:xxx"' \
      -c 'laddexpr "buffer.c:5:1:yyy"' \
      -c 'lopen' buffer.c

      Pressing <Enter> on line "buffer.c|2 col 1| xxx" in location-list window
      jumps to line 2 in buffer.c (good).

      This does not work:

      $ cd vim/src
      $ vim -u NONE -N \
      -c 'setlocal errorformat=%l:%c:%m' \
      -c 'laddexpr "2:1:xxx"' \
      -c 'laddexpr "5:1:yyy"' \
      -c 'lopen' buffer.c

      Pressing <Enter> on line "2|1| xxx" for example in location-list jumps
      to file "2". I would expect it to jump to line 2 in file buffer.c.

      Is this a bug? Or is specifying %f mandatody in errorformat?

      Regards
      -- Dominique

      --
      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
    Your message has been successfully submitted and would be delivered to recipients shortly.