1
0
mirror of https://github.com/chylex/IntelliJ-IdeaVim.git synced 2025-03-07 03:32:51 +01:00

[EA-117268 5135780] Fix OOBE for display ascii info

This commit is contained in:
Alex Plate 2019-08-01 17:55:42 +03:00
parent 6e81714937
commit b2af829e2e
No known key found for this signature in database
GPG Key ID: 0B97153C8FFEC09F

View File

@ -246,7 +246,9 @@ public class FileGroup {
public void displayAsciiInfo(@NotNull Editor editor) {
int offset = editor.getCaretModel().getOffset();
char ch = editor.getDocument().getCharsSequence().charAt(offset);
CharSequence charsSequence = editor.getDocument().getCharsSequence();
if (charsSequence.length() == 0 || offset >= charsSequence.length()) return;
char ch = charsSequence.charAt(offset);
VimPlugin.showMessage("<" +
StringHelper.toKeyNotation(KeyStroke.getKeyStroke(ch)) +