mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-19 03:16:10 +00:00
Fix 1756: Disable seek when selecting text on Decompiler Widget (#1917)
This commit is contained in:
parent
807e24edc6
commit
108fff8925
@ -204,6 +204,12 @@ void DecompilerWidget::connectCursorPositionChanged(bool disconnect)
|
||||
|
||||
void DecompilerWidget::cursorPositionChanged()
|
||||
{
|
||||
// Do not perform seeks along with the cursor while selecting multiple lines
|
||||
if (!ui->textEdit->textCursor().selectedText().isEmpty())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
size_t pos = ui->textEdit->textCursor().position();
|
||||
RVA offset = code.OffsetForPosition(pos);
|
||||
if (offset != RVA_INVALID && offset != Core()->getOffset()) {
|
||||
|
Loading…
Reference in New Issue
Block a user