Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#334 fixed garbage character in find results

closed-works-for-me
nobody
None
5
2012-11-02
2012-08-14
Toki Loki
No

At the end of each line of search results it displays endline symbol as garbage character. See attachment.

Fixed it by triming each string.

diff -r fc51181b348e TeXnicCenter/OutputDoc.cpp
--- a/TeXnicCenter/OutputDoc.cpp Thu Aug 09 16:38:31 2012 +0300
+++ b/TeXnicCenter/OutputDoc.cpp Tue Aug 14 17:40:43 2012 +0300
@@ -938,6 +938,7 @@
// Add string to grep view
CString strHit;
strHit.Format(STE_GREP_HIT,lpszPath,nLine,lpszLine);
+ strHit = strHit.Trim();

SendMessage\(m\_apGrepView\[m\_nWorkingFileGrep\]->m\_hWnd,OPW\_ADD\_LINE,
            \(WPARAM\)\(LPCTSTR\)strHit,0L\);

Discussion


Anonymous


Cancel   Add attachments