Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed truncate that is unavailable if file is closed

  • Loading branch information...
commit 50027fe629bb6410921fe508f4277f2670a27c7c 1 parent e5c6276
@genezys genezys authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  git_gutter_handler.py
View
2  git_gutter_handler.py
@@ -41,7 +41,7 @@ def update_git_file(self):
# so we can easily wait 5 seconds
# between updates for performance
if ViewCollection.git_time(self.view) > 5:
- self.git_temp_file.truncate()
+ open(self.git_temp_file.name, 'w').close()
args = [
'git',
'--git-dir=' + self.git_dir,
Please sign in to comment.
Something went wrong with that request. Please try again.