Skip to content

Keymap.getDefault() method get a empty inputstream problem. #67

@godtroop-github

Description

@godtroop-github

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions