mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-19 15:05:36 +02:00
Bug 249802 - C/C++ Editor goto matching bracket does not keep selection
Patch by Wieant
This commit is contained in:
parent
81fe52b68d
commit
71910194db
1 changed files with 1 additions and 1 deletions
|
@ -2438,7 +2438,7 @@ public class CEditor extends TextEditor implements ISelectionChangedListener, IC
|
|||
return;
|
||||
}
|
||||
|
||||
if (selection.getLength() < 0)
|
||||
if (selection.getLength() > 0)
|
||||
targetOffset -= selection.getLength();
|
||||
|
||||
sourceViewer.setSelectedRange(targetOffset, selection.getLength());
|
||||
|
|
Loading…
Add table
Reference in a new issue