1
0
Fork 0
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:
Anton Leherbauer 2008-10-07 07:44:32 +00:00
parent 81fe52b68d
commit 71910194db

View file

@ -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());