From 7fc47e7ebcff3ec1e01399d32752451f14e3de6a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Mads=20M=C3=A6tzke=20Tandrup?= <mads@maetzke-tandrup.dk>
Date: Sun, 22 Feb 2015 22:14:37 +0100
Subject: [PATCH] Fixing spaces in title and message given to bgnotify on OS X

---
 plugins/bgnotify/bgnotify.plugin.zsh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/bgnotify/bgnotify.plugin.zsh b/plugins/bgnotify/bgnotify.plugin.zsh
index 259d27424..5ccead3b8 100755
--- a/plugins/bgnotify/bgnotify.plugin.zsh
+++ b/plugins/bgnotify/bgnotify.plugin.zsh
@@ -34,7 +34,7 @@ bgnotify () {
   if hash notify-send 2>/dev/null; then #ubuntu!
     notify-send $1 $2
   elif hash terminal-notifier 2>/dev/null; then #osx
-    terminal-notifier -message $2 -title $1
+    terminal-notifier -message "$2" -title "$1"
   elif hash growlnotify 2>/dev/null; then #osx growl
     growlnotify -m $1 $2
   elif hash notifu 2>/dev/null; then #cygwyn support!