Skip to content
Browse files

Merge pull request #1 from tmsanrinsha/master

fix bug of macvim-askpass
  • Loading branch information...
2 parents 6941ea4 + 406fcae commit dfcf5ca07f1f95402db5c41e1fa9e3b6ec548f6a @splhack committed Mar 1, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/MacVim/macvim-askpass
View
4 src/MacVim/macvim-askpass
@@ -18,12 +18,12 @@ TITLE=${MACOS_ASKPASS_TITLE:-"SSH"}
DIALOG="display dialog \"$@\" default answer \"\" with title \"$TITLE\""
DIALOG="$DIALOG with icon caution with hidden answer"
-result=`osascript -e 'tell application "Finder"' -e "activate" -e "$DIALOG" -e 'end tell'`
+result=`osascript -e 'tell application "Finder"' -e "activate" -e "$DIALOG" -e "text returned of result" -e 'end tell'`
osascript -e 'tell application "MacVim"' -e "activate" -e 'end tell'
if [ "$result" = "" ]; then
exit 1
else
- echo "$result" | sed -e 's/^text returned://' -e 's/, button returned:.*$//'
+ echo "$result"
exit 0
fi

0 comments on commit dfcf5ca

Please sign in to comment.
Something went wrong with that request. Please try again.