From 346cf062ab3017d06440e6ae7d5134db7d577858 Mon Sep 17 00:00:00 2001 From: Guillaume Nodet Date: Mon, 8 May 2017 20:12:42 +0200 Subject: [PATCH] During completion, accept-line should keep the suffix --- reader/src/main/java/org/jline/reader/impl/LineReaderImpl.java | 1 - 1 file changed, 1 deletion(-) diff --git a/reader/src/main/java/org/jline/reader/impl/LineReaderImpl.java b/reader/src/main/java/org/jline/reader/impl/LineReaderImpl.java index 65a55ab25..71c94dcf5 100644 --- a/reader/src/main/java/org/jline/reader/impl/LineReaderImpl.java +++ b/reader/src/main/java/org/jline/reader/impl/LineReaderImpl.java @@ -4233,7 +4233,6 @@ protected boolean doMenu(List original, String completed) { String chars = getString(REMOVE_SUFFIX_CHARS, DEFAULT_REMOVE_SUFFIX_CHARS); if (SELF_INSERT.equals(ref) && chars.indexOf(getLastBinding().charAt(0)) >= 0 - || ACCEPT_LINE.equals(ref) || BACKWARD_DELETE_CHAR.equals(ref)) { buf.backspace(completion.suffix().length()); }