Permalink
Browse files

bug fix #27

  • Loading branch information...
1 parent 091ac4c commit 897b3550f5d15a2f1e1762bc697cf11b0a40f8f8 @gornostal committed Oct 5, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 Modific.py
View
@@ -223,7 +223,8 @@ class DiffCommand(VcsCommand):
def run(self, edit):
vcs = get_vcs(self.get_working_dir())
- filename = os.path.basename(self.view.file_name())
+ filepath = self.view.file_name()
+ filename = os.path.basename(filepath)
max_file_size = settings.get('max_file_size', 1024) * 1024
if not os.path.exists(filename) or os.path.getsize(filename) > max_file_size:
# skip large files

0 comments on commit 897b355

Please sign in to comment.