From: SourceForge.net <no...@so...> - 2012-11-14 16:22:10
|
Feature Requests item #3587158, was opened at 2012-11-14 08:22 Message generated for change (Tracker Item Submitted) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=354664&aid=3587158&group_id=4664 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: DOS Style line ending brakes display output Initial Comment: DOS Style line ending brakes display output. The match is detected but not displayed. See the attached mock-up source tree. egrep for MYMAP_ the search matches '1' and '2' are not visible, but "operational". A better fix should run the characters of 'tempstring' , if there are non-displayable chars it should still display the file name, function, and line number, but replace the matched text with ellipsis. Proposed change: Index: display.c =================================================================== RCS file: /cvsroot/cscope/cscope/src/display.c,v retrieving revision 1.33 diff -u -r1.33 display.c --- display.c 20 May 2012 12:24:17 -0000 1.33 +++ display.c 14 Nov 2012 16:16:00 -0000 @@ -229,6 +229,12 @@ linenum, tempstring) < 4) { break; } + { + char *cr = strchr( tempstring, '\r' ); + if( cr ) { + *cr = 0; + } + } ++nextline; displine[disprefs] = screenline; ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=354664&aid=3587158&group_id=4664 |