diff --git a/NEWS.md b/NEWS.md index c0b5ff65..4f2c544f 100644 --- a/NEWS.md +++ b/NEWS.md @@ -14,6 +14,7 @@ Red Panda C++ Version 0.13.2 - enhancement: redirect stdio to a file while debugging ( must use gdb server mode to debug) - fix: parser can't correctly handle variable definitions that don't have spaces like 'int*x'; - fix: parser can't correctly handle function parameters like 'int *x' + - fix: caret dispears when at '\t' under Windows 7 Red Panda C++ Version 0.13.1 - enhancement: suppoort localization info in project templates diff --git a/RedPandaIDE/qsynedit/SynEdit.cpp b/RedPandaIDE/qsynedit/SynEdit.cpp index 87212b38..8a01073b 100644 --- a/RedPandaIDE/qsynedit/SynEdit.cpp +++ b/RedPandaIDE/qsynedit/SynEdit.cpp @@ -1250,7 +1250,7 @@ BufferCoord SynEdit::getPreviousLeftBrace(int x, int y) int SynEdit::charColumns(QChar ch) const { - if (ch == ' ') + if (ch == ' ' || ch == '\t') return 1; //return std::ceil((int)(fontMetrics().horizontalAdvance(ch) * dpiFactor()) / (double)mCharWidth); return std::ceil((int)(fontMetrics().horizontalAdvance(ch)) / (double)mCharWidth);