1
0
mirror of https://github.com/chylex/IntelliJ-IdeaVim.git synced 2025-08-10 15:40:37 +02:00
This commit is contained in:
Andrey Vlasovskikh 2015-03-27 21:19:56 +03:00
parent 5c31fcc03e
commit 89e853158c
2 changed files with 6 additions and 6 deletions
src/com/maddyhome/idea/vim

View File

@ -87,7 +87,7 @@ public class EditorGroup {
public void editorReleased(@NotNull EditorFactoryEvent event) {
final Editor editor = event.getEditor();
deinitLineNumbers(editor);
EditorData.uninitializeEditor(editor);
EditorData.unInitializeEditor(editor);
VimPlugin.getKey().unregisterShortcutKeys(editor);
editor.getSettings().setAnimatedScrolling(isAnimatedScrolling);
editor.getSettings().setRefrainFromScrolling(isRefrainFromScrolling);

View File

@ -59,7 +59,7 @@ public class EditorData {
*
* @param editor The editor to cleanup
*/
public static void uninitializeEditor(@NotNull Editor editor) {
public static void unInitializeEditor(@NotNull Editor editor) {
if (logger.isDebugEnabled()) logger.debug("editor closed: " + editor);
editor.putUserData(COMMAND_STATE, null);
editor.putUserData(LAST_HIGHLIGHTS, null);
@ -73,7 +73,7 @@ public class EditorData {
/**
* This gets the last column the cursor was in for the editor.
*
* @param editor The editr to get the last column from
* @param editor The editor to get the last column from
* @return Returns the last column as set by {@link #setLastColumn} or the current cursor column
*/
public static int getLastColumn(@NotNull Editor editor) {
@ -285,8 +285,8 @@ public class EditorData {
// coded such that two keys with the same name are treated as different keys - oh well.
// This code will work as long as the key I need is the first one in the ConsoleViewImpl.
Class cvi = Class.forName("com.intellij.execution.impl.ConsoleViewImpl");
Field[] flds = cvi.getDeclaredFields();
for (Field f : flds) {
Field[] fields = cvi.getDeclaredFields();
for (Field f : fields) {
if (f.getType().equals(Key.class)) {
f.setAccessible(true);
CONSOLE_VIEW_IN_EDITOR_VIEW = (Key)f.get(null);
@ -303,7 +303,7 @@ public class EditorData {
}
/**
* Checks if editor is file editor, also it takes into account that editor can be placed in editors hierarhy
* Checks if editor is file editor, also it takes into account that editor can be placed in editors hierarchy
*/
public static boolean isFileEditor(@NotNull Editor editor){
final VirtualFile virtualFile = EditorData.getVirtualFile(editor);