From 44e1ae0002b8b5939530c80af01ff86be5a9dcef Mon Sep 17 00:00:00 2001 From: Nils Winkler Date: Wed, 5 Nov 2014 08:17:40 +0100 Subject: [PATCH] Fixed script execution to always use the frontmost window, instead of window 1. If you had multiple terminal windows open, there was a chance that the command was sent to another window (the one with index 1). Using index 0 will execute it in the currently visible window. --- plugins/available/osx.plugin.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/available/osx.plugin.bash b/plugins/available/osx.plugin.bash index b7465a3f..c690e8f3 100644 --- a/plugins/available/osx.plugin.bash +++ b/plugins/available/osx.plugin.bash @@ -11,7 +11,7 @@ function tab() { end tell application "Terminal" activate - do script with command " cd \"$PWD\"; $*" in window 1 + do script with command " cd \"$PWD\"; $*" in window 0 end tell EOF }