#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

  • Toki Loki
    Toki Loki
    2012-08-14

     
    Attachments
  • Tino Weinkauf
    Tino Weinkauf
    2012-11-02

    Sorry, must have been the old version.

     
  • Tino Weinkauf
    Tino Weinkauf
    2012-11-02

    • status: open --> closed-works-for-me
     


Anonymous


Cancel   Add attachments