Fix IDE history when exception thrown (forward)

This commit is contained in:
Sergey Tselovalnikov
2015-07-17 15:23:07 +03:00
parent 0ebe7936bc
commit 060f2ac4c6
@@ -355,13 +355,16 @@ public class IdeDocumentHistoryImpl extends IdeDocumentHistory implements Projec
if (target == null) return;
myForwardInProgress = true;
executeCommand(new Runnable() {
@Override
public void run() {
gotoPlaceInfo(target);
}
}, "", null);
myForwardInProgress = false;
try {
executeCommand(new Runnable() {
@Override
public void run() {
gotoPlaceInfo(target);
}
}, "", null);
} finally {
myForwardInProgress = false;
}
}
private PlaceInfo getTargetForwardInfo() {