Permalink
Browse files

vlt diff fixed

  • Loading branch information...
1 parent 4334ee2 commit 724f7398678262c57d33754d18bdd9a3027995e3 Tomek Wytrębowicz committed Sep 10, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 vlt.py
  2. BIN vlt.pyc
View
3 vlt.py
@@ -263,9 +263,10 @@ def panel_followup(self, picked_status, picked_file, picked_index):
#root = vlt_root(self.get_working_dir())
#vlt even if asked for other destination always prints paths relative to current working dir
root = self.get_working_dir()
+ picked_file = picked_file.split(" (")[0]
print os.path.join(root, picked_file)
print os.path.isfile(os.path.join(root, picked_file))
- if picked_status == '?' or s.get('status_opens_file') or self.force_open:
+ if picked_status == '?' or picked_status == 'A' or s.get('status_opens_file') or self.force_open:
if(os.path.isfile(os.path.join(root, picked_file))): self.window.open_file(os.path.join(root, picked_file))
else:
self.run_command(['vlt', 'diff', picked_file.strip('"')],
View
BIN vlt.pyc
Binary file not shown.

0 comments on commit 724f739

Please sign in to comment.