From cd520317bd884b17099f43170fa253e9ccf74e89 Mon Sep 17 00:00:00 2001
From: Bart Lantz <bartlantz@gmail.com>
Date: Sun, 11 Mar 2012 13:50:58 -0600
Subject: [PATCH] Fixed \da call to open url to Drupal API documentation.

---
 ftplugin/drupal.vim |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/ftplugin/drupal.vim b/ftplugin/drupal.vim
index 49b9b2d..9aa6ec1 100644
--- a/ftplugin/drupal.vim
+++ b/ftplugin/drupal.vim
@@ -50,13 +50,13 @@ function s:OpenURL(base)
   let func =  shellescape(expand('<cword>'))
   if a:base == 'api.d.o'
     if strlen(b:Drupal_info.CORE)
-      execute '!' . open . ' http://api.drupal.org/api/search/' .
-	    \ b:Drupal_info.CORE . '/' . func
+      call system(open . ' http://api.drupal.org/api/search/' .
+	    \ b:Drupal_info.CORE . '/' . func)
     else
-      execute '!' . open . ' http://api.drupal.org/' . func
+      call system(open . ' http://api.drupal.org/' . func)
     endif
   else
-    execute '!' . open . ' ' . a:base . func
+    call system(open . ' ' . a:base . func)
   endif
 endfun
 
-- 
1.7.5.4

