Skip to content

Commit 951c43d

Browse files
committed
Don't use show_window for viewers
It doesn't seem to do anything
1 parent 1f39914 commit 951c43d

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

viewers/command_viewer.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@
2424
strbase = basestring
2525

2626

27-
WINDOWS_SHELL = re.compile(r'\b(?:cmd|powershell)(?:.exe)?\b', re.UNICODE)
28-
29-
3027
# a viewer that runs a user-specified command
3128
class CommandViewer(BaseViewer):
3229

@@ -131,11 +128,7 @@ def _run_command(self, command, pdf_file, tex_file=None, line='', col=''):
131128

132129
external_command(
133130
command,
134-
cwd=os.path.split(pdf_file)[0],
135-
# show the Window if not using a Windows shell, i.e., powershell or
136-
# cmd
137-
show_window=not bool(WINDOWS_SHELL.match(command[0]))
138-
if sublime.platform() == 'windows' else False
131+
cwd=os.path.split(pdf_file)[0]
139132
)
140133

141134
def forward_sync(self, pdf_file, tex_file, line, col, **kwargs):

viewers/sumatra_viewer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def _error_msg():
9999
try:
100100
external_command(
101101
[sumatra_binary] + commands,
102-
use_texpath=False, show_window=True
102+
use_texpath=False
103103
)
104104
except OSError:
105105
exc_info = sys.exc_info()
@@ -109,7 +109,7 @@ def _error_msg():
109109
try:
110110
external_command(
111111
[sumatra_exe] + commands,
112-
use_texpath=False, show_window=True
112+
use_texpath=False
113113
)
114114
except OSError:
115115
traceback.print_exc()

0 commit comments

Comments
 (0)