Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,11 @@ def run(self, edit):
else:
git_root_dir = ""

if not os.path.isfile(full_path_file_name):
if full_path_file_name is None
# If no path exists, this is a manual hunk editing diff
# fall back to default "Enter" command
v.run_command('insert', {'characters':'\n'})
elif not os.path.isfile(full_path_file_name):
caption = "Enter base directory for file '%s':" % self.file_name
v.window().show_input_panel(caption,
git_root_dir,
Expand Down