Permalink
Browse files

fix for #28

  • Loading branch information...
1 parent 897b355 commit 27f60cd245253ffcc54409e5f9757f47e8979f15 @gornostal committed Oct 9, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 Modific.py
View
@@ -226,7 +226,7 @@ def run(self, edit):
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:
+ if not os.path.exists(filepath) or os.path.getsize(filepath) > max_file_size:
# skip large files
return
get_command = getattr(self, '{0}_diff_command'.format(vcs['name']), None)

0 comments on commit 27f60cd

Please sign in to comment.