Skip to content

Commit 2e59d2d

Browse files
committed
Fix macvim-askpass to send event to MacVim itself instead of Finder
This fixes the focus issues with it and also makes the permission dialog box a little less sketchy (previously it would appear MacVim is trying to control Finder). See #1091 for code contribution. Close #1091.
1 parent 8b25779 commit 2e59d2d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/MacVim/macvim-askpass

+1-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ 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 "text returned of result" -e 'end tell'`
22-
osascript -e 'tell application "MacVim"' -e "activate" -e 'end tell'
21+
result=`osascript -e 'tell application "MacVim"' -e "activate" -e "$DIALOG" -e "text returned of result" -e 'end tell'`
2322

2423
if [ "$result" = "" ]; then
2524
exit 1

0 commit comments

Comments
 (0)