From 1f459622cb7df323f4bad1fa927bc94ee5ae1cad Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Sat, 25 Apr 2020 09:25:03 +0200 Subject: [PATCH] docs: Add fish_posterror Also remove the "event will be emitted even if the command is invalid" because it's not the case anymore, AFAICT. See #6880. --- doc_src/cmds/function.rst | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/doc_src/cmds/function.rst b/doc_src/cmds/function.rst index fb9977234..bd2f2dc51 100644 --- a/doc_src/cmds/function.rst +++ b/doc_src/cmds/function.rst @@ -54,12 +54,10 @@ By using one of the event handler switches, a function can be made to run automa - ``fish_preexec``, which is emitted right before executing an interactive command. The commandline is passed as the first parameter. - Note: This event will be emitted even if the command is invalid. The commandline parameter includes the entire commandline verbatim, and may potentially include newlines. +- ``fish_posterror``, which is emitted right after executing a command with syntax errors. The commandline is passed as the first parameter. - ``fish_postexec``, which is emitted right after executing an interactive command. The commandline is passed as the first parameter. - Note: This event will be emitted even if the command is invalid. The commandline parameter includes the entire commandline verbatim, and may potentially include newlines. - - ``fish_exit`` is emitted right before fish exits. - ``fish_cancel``, which is emitted when a commandline is cleared (used for terminal-shell integration).