branch: externals/shell-command+
commit 5fbe4d89e6672224d86f0851be431c0eced0c5cb
Author: Philip K <phil...@posteo.net>
Commit: Philip K <phil...@posteo.net>

    Strip away all trailing whitespace
---
 shell-command+.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/shell-command+.el b/shell-command+.el
index ba6565d..c482449 100644
--- a/shell-command+.el
+++ b/shell-command+.el
@@ -95,8 +95,10 @@ handlers if the symbol (eg. `man') is contained in the list."
       (* space)
       ;; actual command (and command name)
       (group (group (+ (not space)))
-             (* space)
+             (*? space)
              (*? not-newline))
+      ;; ignore all trailing whitespace
+      (* space)
       eos)
   "Regular expression to parse `shell-command+' input.")
 

Reply via email to