Skip to content

Commit

Permalink
Fixed truncate that is unavailable if file is closed
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Robert committed Dec 14, 2012
1 parent e5c6276 commit 50027fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git_gutter_handler.py
Expand Up @@ -41,7 +41,7 @@ def update_git_file(self):
# so we can easily wait 5 seconds # so we can easily wait 5 seconds
# between updates for performance # between updates for performance
if ViewCollection.git_time(self.view) > 5: if ViewCollection.git_time(self.view) > 5:
self.git_temp_file.truncate() open(self.git_temp_file.name, 'w').close()
args = [ args = [
'git', 'git',
'--git-dir=' + self.git_dir, '--git-dir=' + self.git_dir,
Expand Down

0 comments on commit 50027fe

Please sign in to comment.