- fix: dragging out of the editor shouldn't reset the caret back

This commit is contained in:
Roy Qu 2021-11-26 08:29:00 +08:00
parent 03ae21ebf6
commit f8a8f5df67
2 changed files with 5 additions and 4 deletions

View File

@ -3,6 +3,7 @@ Version 0.10.1 For Dev-C++ 7 Beta
- fix: can't correctly display stl containers in watch
- fix: the last line in the debug console is not correctly displayed
- enhancement: scroll while dragging text in the editor
- fix: dragging out of the editor shouldn't reset the caret back
Version 0.10.0 For Dev-C++ 7 Beta
- enhancement: use gdb/mi interface to communicate with gdb debug session

View File

@ -6194,10 +6194,10 @@ void SynEdit::dragMoveEvent(QDragMoveEvent *event)
void SynEdit::dragLeaveEvent(QDragLeaveEvent *)
{
setCaretXY(mDragCaretSave);
setBlockBegin(mDragSelBeginSave);
setBlockEnd(mDragSelEndSave);
showCaret();
// setCaretXY(mDragCaretSave);
// setBlockBegin(mDragSelBeginSave);
// setBlockEnd(mDragSelEndSave);
// showCaret();
mScrollTimer->stop();
mDragging = false;
}