- fix: crash when alt+mouse drag selection
This commit is contained in:
parent
052f4610ee
commit
9072e752a0
|
@ -4943,12 +4943,6 @@ bool CppParser::splitLastMember(const QString &token, QString &lastMember, QStri
|
|||
return true;
|
||||
}
|
||||
|
||||
static bool isIdentChar(const QChar& ch) {
|
||||
return ch.isLetter()
|
||||
|| ch == '_'
|
||||
|| ch.isDigit();
|
||||
}
|
||||
|
||||
//static void appendArgWord(QString& args, const QString& word) {
|
||||
// QString s=word.trimmed();
|
||||
// if (s.isEmpty())
|
||||
|
|
|
@ -1957,23 +1957,6 @@ void SynEdit::doMouseScroll(bool isDragging)
|
|||
}
|
||||
BufferCoord vCaret = displayToBufferPos(C);
|
||||
if ((caretX() != vCaret.ch) || (caretY() != vCaret.line)) {
|
||||
// if (mActiveSelectionMode == SelectionMode::Column) {
|
||||
// int startLine=std::min(mBlockBegin.line,mBlockEnd.line);
|
||||
// startLine = std::min(startLine,vCaret.line);
|
||||
// int endLine=std::max(mBlockBegin.line,mBlockEnd.line);
|
||||
// endLine = std::max(endLine,vCaret.line);
|
||||
|
||||
// int currentCol=displayXY().Column;
|
||||
// for (int i=startLine;i<=endLine;i++) {
|
||||
// QString s = mDocument->getString(i-1);
|
||||
// int cols = stringColumns(s,0);
|
||||
// if (cols+1<currentCol) {
|
||||
// computeScroll(isDragging);
|
||||
// return;
|
||||
// }
|
||||
// }
|
||||
|
||||
// }
|
||||
// changes to line / column in one go
|
||||
incPaintLock();
|
||||
auto action = finally([this]{
|
||||
|
|
Loading…
Reference in New Issue