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

68928Re: [patch] Handle files with mixed LF - CRLF line endings when doing tag search

Expand Messages
  • Lech Lorens
    Apr 2, 2013
    • 0 Attachment
      On 02-Apr-2013 Nazri Ramliy <ayiehere@...> wrote:
      > On Mon, Apr 1, 2013 at 11:16 PM, Lech Lorens <lech.lorens@...> wrote:
      > > The problem is that if Vim reads such a file with ff=unix, it will fail
      > > to find tags if the tag pattern searched should match on a DOS-style
      > > line. The attached patch handles the problem in a naïve but surprisingly
      > > effective way: if a pattern search fails, Vim will try putting "\r\*"
      > > before the last "$" in the pattern and will retry the search.
      > I'd rather have vim scream when it detects that a file is broken like
      > this so I can cure the file.
      > Isn't it better to fix the problem, rather than the symptom?
      > nazri

      For an answer please read what Bram wrote and my response to his points.

      Lech Lorens

      You received this message from the "vim_dev" 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_dev" group.
      To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscribe@....
      For more options, visit https://groups.google.com/groups/opt_out.
    • Show all 16 messages in this topic