mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-06 06:00:26 +00:00
8159031: jjs throws NoSuchFileException if ~/.jjs.history does not exist
Reviewed-by: sundar, mhaupt
This commit is contained in:
parent
2a5aef1ee4
commit
ebf4782aa1
@ -54,7 +54,9 @@ public abstract class EditingHistory implements History {
|
||||
(Runnable) () -> moveHistoryToSnippet(in, ((EditingHistory) in.getHistory())::previousSnippet));
|
||||
bind(in, CTRL_DOWN,
|
||||
(Runnable) () -> moveHistoryToSnippet(in, ((EditingHistory) in.getHistory())::nextSnippet));
|
||||
load(originalHistory);
|
||||
if (originalHistory != null) {
|
||||
load(originalHistory);
|
||||
}
|
||||
}
|
||||
|
||||
private void moveHistoryToSnippet(ConsoleReader in, Supplier<Boolean> action) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user