diff --git a/src/com/jpexs/decompiler/flash/gui/abc/ABCPanel.java b/src/com/jpexs/decompiler/flash/gui/abc/ABCPanel.java index decda4079..db952b927 100644 --- a/src/com/jpexs/decompiler/flash/gui/abc/ABCPanel.java +++ b/src/com/jpexs/decompiler/flash/gui/abc/ABCPanel.java @@ -1669,7 +1669,7 @@ public class ABCPanel extends JPanel implements ItemListener, SearchListener 1) { - ignoreCarret = true; + ignoreCaret = true; int startPos = tm.startPos + tm.len - 1; if (startPos <= getDocument().getLength()) { setCaretPosition(startPos); } - ignoreCarret = false; + ignoreCaret = false; } pos = tm.startPos; @@ -838,12 +838,12 @@ public class DecompiledEditorPane extends DebuggableEditorPane implements CaretL int pos = 0; if (th != null) { if (th.len > 1) { - ignoreCarret = true; + ignoreCaret = true; int startPos = th.startPos + th.len - 1; if (startPos <= getDocument().getLength()) { setCaretPosition(startPos); } - ignoreCarret = false; + ignoreCaret = false; } pos = th.startPos; } else if (tc != null) { diff --git a/src/com/jpexs/decompiler/flash/gui/abc/MethodCodePanel.java b/src/com/jpexs/decompiler/flash/gui/abc/MethodCodePanel.java index 310b8e820..203c64c21 100644 --- a/src/com/jpexs/decompiler/flash/gui/abc/MethodCodePanel.java +++ b/src/com/jpexs/decompiler/flash/gui/abc/MethodCodePanel.java @@ -101,8 +101,8 @@ public class MethodCodePanel extends JPanel { return sourceTextArea.getName(); } - public void setIgnoreCarret(boolean ignoreCarret) { - sourceTextArea.setIgnoreCarret(ignoreCarret); + public void setIgnoreCaret(boolean ignoreCaret) { + sourceTextArea.setIgnoreCaret(ignoreCaret); } public void hilighOffset(long offset) { diff --git a/src/com/jpexs/decompiler/flash/gui/action/ActionPanel.java b/src/com/jpexs/decompiler/flash/gui/action/ActionPanel.java index 6cd19a8cb..0d8beb2b1 100644 --- a/src/com/jpexs/decompiler/flash/gui/action/ActionPanel.java +++ b/src/com/jpexs/decompiler/flash/gui/action/ActionPanel.java @@ -160,7 +160,7 @@ public class ActionPanel extends JPanel implements SearchListener 0 && h2.startPos < editor.getText().length()) { editor.setCaretPosition(h2.startPos); } editor.getCaret().setVisible(true); - ignoreCarret = false; + ignoreCaret = false; } } }