Skip to content

Commit 5b9051a

Browse files
committed
Merge pull request colinta#57 from clarkewd/preventConsoleFromPoppingUp
Fixes colinta#19 - Prevent console from popping up
2 parents 01b52ee + f1018ff commit 5b9051a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

file_diffs.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import sublime_plugin
77
import difflib
88
import tempfile
9+
import subprocess
910

1011
from fnmatch import fnmatch
1112
import codecs
@@ -164,7 +165,7 @@ def trim_trailing_white_space(file_name):
164165
if sublime.platform() == "windows":
165166
Popen(external_command)
166167
else:
167-
self.view.window().run_command("exec", {"cmd": external_command})
168+
subprocess.Popen(external_command)
168169
except Exception as e:
169170
# some basic logging here, since we are cluttering the /tmp folder
170171
sublime.status_message(str(e))

0 commit comments

Comments
 (0)