]> granicus.if.org Git - neomutt/commitdiff
notify: after command execution
authorRichard Russon <rich@flatcap.org>
Mon, 7 Oct 2019 10:14:52 +0000 (11:14 +0100)
committerRichard Russon <rich@flatcap.org>
Sun, 27 Oct 2019 00:37:31 +0000 (01:37 +0100)
init.c
mutt/notify_type.h

diff --git a/init.c b/init.c
index de2e0d1756e78ef24c67e89973eafc73ef2102be..c902cd363e00b12f9ab7b7e97037de007c2b8aa8 100644 (file)
--- a/init.c
+++ b/init.c
@@ -3261,6 +3261,7 @@ enum CommandResult mutt_parse_rc_line(/* const */ char *line,
         {              /* -1 Error, +1 Finish */
           goto finish; /* Propagate return code */
         }
+        notify_send(NeoMutt->notify, NT_COMMAND, i, 0);
         break; /* Continue with next command */
       }
     }
index 5ef1019c8d213fcc50e618f614280cfb19017699..00bcbddc474f02b7b8529c2b51353cde8a82eed6 100644 (file)
@@ -37,6 +37,7 @@ enum NotifyType
   NT_WINDOW,  ///< Window has changed
   NT_CONTEXT, ///< Context has changed
   NT_COLOR,   ///< Colour has changed
+  NT_COMMAND, ///< A Command has been executed
 };
 
 #endif /* MUTT_LIB_NOTIFY_TYPE_H */