1
0
mirror of https://github.com/chylex/IntelliJ-IdeaVim.git synced 2025-08-14 17:17:07 +02:00

Fix exception

This commit is contained in:
Alex Plate
2019-10-08 10:37:11 +03:00
parent 29858e8b10
commit a255597bc0

@@ -357,8 +357,9 @@ public class KeyHandler {
mappingKeys.add(key);
if (!application.isUnitTestMode() && OptionsManager.INSTANCE.getTimeout().isSet()) {
commandState.startMappingTimer(actionEvent -> application.invokeLater(() -> {
final KeyStroke firstKey = mappingKeys.get(0);
mappingKeys.clear();
if (editor.isDisposed() || mappingKeys.get(0).equals(parseKeys("<Plug>").get(0))) {
if (editor.isDisposed() || firstKey.equals(parseKeys("<Plug>").get(0))) {
return;
}
for (KeyStroke keyStroke : fromKeys) {