Menu

#247 \r\n line not working with vim

closed
None
5
2010-06-20
2009-03-24
jeff
No

since the generated tags will include the '$' as pattern, the original file still '\r\n' under *nix, vim will complain 'pattern not found'

following appears to be working: (at least for me, in entry.c)
newlineTerminated = (boolean) (line [strlen (line) - 1] == '\n');
/* added by jeff*/
newlineTerminated = 0;

Thank you very much for the good tool, I have been using it for a long time, keep up the good work!

Discussion

  • Darren Hiebert

    Darren Hiebert - 2010-06-05

    I have tried to recreate this problem as follows. I created a file on Mac OS X (i.e. a Unix-based computer) with the following lines in it:
    -----
    void foo()
    {}
    -----
    In Vim, I did ":set ff=dos", ":w". Then I generated a tag file for this source file. Then I did ":tag foo" and Vim correctly located the tag.

    Can you provide more details to reproduce the problem. Perhaps you could attach a source file that demonstrates the problem with a list of instructions to perform and on what operating system.

     
  • Darren Hiebert

    Darren Hiebert - 2010-06-05
    • assigned_to: nobody --> dhiebert
    • status: open --> pending
     
  • SourceForge Robot

    • status: pending --> closed
     
  • SourceForge Robot

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     

Log in to post a comment.