accept-autosuggestion to return false if there was no autosuggestion to accept

Example usage:

    bind ctrl-space accept-autosuggestion and execute

Closes #10608
This commit is contained in:
diniamo
2024-07-09 02:16:21 +02:00
committed by Johannes Altmanninger
parent cd3da62d24
commit 052e764f29
3 changed files with 4 additions and 1 deletions

View File

@@ -112,7 +112,7 @@ The following special input functions are available:
only execute the next function if the previous succeeded (note: only some functions report success)
``accept-autosuggestion``
accept the current autosuggestion
accept the current autosuggestion. Returns false when there was nothing to accept.
``backward-char``
move one character to the left.