Open godtroop-github opened 1 year ago
public static Keymap getDefault() { InputStream inputrc = null; try { inputrc = Keymap.class.getResourceAsStream("inputrc"); } finally { if (inputrc != null) { try { inputrc.close(); } catch (IOException e) { // ignore } } }
return new Keymap(inputrc); // this line get a closed inputstream, this may cause keymap initializing failed.
Just like the comment, using example/readline can reproduce it.
public static Keymap getDefault() { InputStream inputrc = null; try { inputrc = Keymap.class.getResourceAsStream("inputrc"); } finally { if (inputrc != null) { try { inputrc.close(); } catch (IOException e) { // ignore } } }
}
Just like the comment, using example/readline can reproduce it.