From 450ba62125db0e09ea125793e9e2b0a476bd93ea Mon Sep 17 00:00:00 2001
From: Jonathan Wilkes <jon.w.wilkes@gmail.com>
Date: Sun, 3 Apr 2016 23:56:16 -0400
Subject: [PATCH] fix typo in function call

---
 pd/nw/pdgui.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pd/nw/pdgui.js b/pd/nw/pdgui.js
index a4e4826da..d0dfbda3f 100644
--- a/pd/nw/pdgui.js
+++ b/pd/nw/pdgui.js
@@ -695,7 +695,7 @@ function open_file(file) {
     }
     if (basename.match(/\.(pd|pat|mxt)$/i) != null) {
         pdsend("pd open", enquote(basename),
-            defunkify_for_windows(enquote(directory)));
+            defunkify_windows_path(enquote(directory)));
         pd_opendir = directory;
         //::pd_guiprefs::update_recentfiles "$filename" 1
     }
@@ -738,7 +738,7 @@ function doc_open (dir, basename) {
 
     } else {
         pdsend("pd open", enquote(basename),
-            defunkify_for_windows(enquote(norm_path)));
+            defunkify_windows_path(enquote(norm_path)));
     }
 }
 
-- 
GitLab