mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fixed IDEA-132100 and IDEA-132017 - incorrect mode after restore from history
This commit is contained in:
+1
-1
@@ -51,7 +51,7 @@ public class XDebuggerHistoryManager {
|
||||
list.removeLast();
|
||||
}
|
||||
|
||||
XExpression trimmedExpression = new XExpressionImpl(expression.getExpression().trim(), expression.getLanguage(), expression.getCustomInfo());
|
||||
XExpression trimmedExpression = new XExpressionImpl(expression.getExpression().trim(), expression.getLanguage(), expression.getCustomInfo(), expression.getMode());
|
||||
list.remove(trimmedExpression);
|
||||
list.addFirst(trimmedExpression);
|
||||
return true;
|
||||
|
||||
@@ -240,7 +240,7 @@ public abstract class XDebuggerEditorBase {
|
||||
final List<XExpression> expressions = getRecentExpressions();
|
||||
if (myHistoryIndex < expressions.size() - 1) {
|
||||
myHistoryIndex++;
|
||||
setEditorText(expressions.get(myHistoryIndex));
|
||||
setExpression(expressions.get(myHistoryIndex));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -248,7 +248,7 @@ public abstract class XDebuggerEditorBase {
|
||||
final List<XExpression> expressions = getRecentExpressions();
|
||||
if (myHistoryIndex > 0) {
|
||||
myHistoryIndex--;
|
||||
setEditorText(expressions.get(myHistoryIndex));
|
||||
setExpression(expressions.get(myHistoryIndex));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user