Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/45 does not open new tab for already opened file #55

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
Reformatting code for readability
  • Loading branch information
KES777 committed Sep 21, 2015
commit b9ca5cda4d6bc80769cc00db2c6726e5e59d491b
6 changes: 4 additions & 2 deletions rsub.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,10 @@ def on_done(self):
except OSError as e:
sublime.error_message('Failed to create rsub temporary directory! Error: %s' % e)
return
self.temp_file = os.path.join(self.temp_dir,
os.path.basename(self.env['display-name'].split(':')[-1]))
self.temp_file = os.path.join(
self.temp_dir,
os.path.basename( self.env['display-name'].split(':')[-1] )
)
try:
temp_file = open( self.temp_file, "wb+" )
temp_file.write(self.file[:self.file_size])
Expand Down