1
0
mirror of https://github.com/chylex/IntelliJ-IdeaVim.git synced 2025-08-15 19:31:47 +02:00

Inlined redundant local variables

This commit is contained in:
Andrey Vlasovskikh
2014-05-07 21:55:13 +04:00
parent d47570664b
commit bccb62a84f
2 changed files with 4 additions and 6 deletions
src/com/maddyhome/idea/vim

@@ -1105,19 +1105,18 @@ public class ChangeGroup {
}
if (kludge) {
int pos = offset;
int size = EditorHelper.getFileSize(editor);
int cnt = count * motion.getCount();
int pos1 = SearchHelper.findNextWordEnd(chars, pos, size, cnt, bigWord, false);
int pos1 = SearchHelper.findNextWordEnd(chars, offset, size, cnt, bigWord, false);
int pos2 = SearchHelper.findNextWordEnd(chars, pos1, size, -cnt, bigWord, false);
if (logger.isDebugEnabled()) {
logger.debug("pos=" + pos);
logger.debug("pos=" + offset);
logger.debug("pos1=" + pos1);
logger.debug("pos2=" + pos2);
logger.debug("count=" + count);
logger.debug("arg.count=" + motion.getCount());
}
if (pos2 == pos) {
if (pos2 == offset) {
if (count > 1) {
count--;
rawCount--;

@@ -258,8 +258,7 @@ public class EditorData {
for (Field f : flds) {
if (f.getType().equals(Key.class)) {
f.setAccessible(true);
Key key = (Key)f.get(null);
CONSOLE_VIEW_IN_EDITOR_VIEW = key;
CONSOLE_VIEW_IN_EDITOR_VIEW = (Key)f.get(null);
break;
}
}