Skip to content

Commit 406fcae

Browse files
committed
fix bug of macvim-askpass
1 parent 6941ea4 commit 406fcae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/MacVim/macvim-askpass

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ TITLE=${MACOS_ASKPASS_TITLE:-"SSH"}
1818
DIALOG="display dialog \"$@\" default answer \"\" with title \"$TITLE\""
1919
DIALOG="$DIALOG with icon caution with hidden answer"
2020

21-
result=`osascript -e 'tell application "Finder"' -e "activate" -e "$DIALOG" -e 'end tell'`
21+
result=`osascript -e 'tell application "Finder"' -e "activate" -e "$DIALOG" -e "text returned of result" -e 'end tell'`
2222
osascript -e 'tell application "MacVim"' -e "activate" -e 'end tell'
2323

2424
if [ "$result" = "" ]; then
2525
exit 1
2626
else
27-
echo "$result" | sed -e 's/^text returned://' -e 's/, button returned:.*$//'
27+
echo "$result"
2828
exit 0
2929
fi

0 commit comments

Comments
 (0)