jaromail

a commandline tool to easily and privately handle your e-mail
git clone git://parazyd.org/jaromail.git
Log | Files | Refs | Submodules | README

commit 1e6492258d17a71b9f8fa3e4e68ee7fcf585139c
parent b29ca0ce030d9aa90d427ea925efee72e4c7b50c
Author: Jaromil <jaromil@dyne.org>
Date:   Sat,  7 Dec 2013 00:48:17 +0100

correctly call editor on paths containing spaces (osx)

Diffstat:
Msrc/zlibs/helpers | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/zlibs/helpers b/src/zlibs/helpers @@ -80,7 +80,7 @@ autostart() { jarovim() { vim -c 'set fo=tcrq' -c 'set tw=72' \ -c 'map <C-j> {gq}' -c 'imap <C-j> <esc>{gq}i' \ - ${=@} + "${@}" return $? } @@ -90,9 +90,9 @@ edit_file() { case $_editor in # refine settings for email - vi|vim) jarovim ${=PARAM}; return $? ;; - emacs) emacsclient -a emacs ${=PARAM}; return $? ;; - *) ${=_editor} ${=PARAM}; return $? ;; + vi|vim) jarovim "${PARAM}"; return $? ;; + emacs) emacsclient -a emacs "${PARAM}"; return $? ;; + *) ${=_editor} "${PARAM}"; return $? ;; esac # if we are here we need to guess