summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 87c0e74)
raw | patch | inline | side by side (parent: 87c0e74)
author | Jonas Fonseca <jonas.fonseca@savoirfairelinux.com> | |
Tue, 15 Dec 2009 15:39:57 +0000 (10:39 -0500) | ||
committer | Jonas Fonseca <jonas.fonseca@savoirfairelinux.com> | |
Tue, 15 Dec 2009 15:39:57 +0000 (10:39 -0500) |
tig.c | patch | blob | history |
index 1be9fc527991e5999d49cd97208899a464183ff6..0a93ad204bfa51a66449893f0b13fc73b0419ad7 100644 (file)
--- a/tig.c
+++ b/tig.c
}
static void
-open_editor(bool from_root, const char *file)
+open_editor(const char *file)
{
const char *editor_argv[] = { "vi", file, NULL };
const char *editor;
editor = "vi";
editor_argv[0] = editor;
- open_external_viewer(editor_argv, from_root ? opt_cdup : NULL);
+ open_external_viewer(editor_argv, opt_cdup);
}
static void
else if (!run_io_append(blob_ops.argv, FORMAT_ALL, fd))
report("Failed to save blob data to file");
else
- open_editor(FALSE, file);
+ open_editor(file);
if (fd != -1)
unlink(file);
}
} else if (!is_head_commit(view->vid)) {
open_blob_editor();
} else {
- open_editor(TRUE, opt_file);
+ open_editor(opt_file);
}
return REQ_NONE;
return REQ_NONE;
}
- open_editor(status->status != '?', status->new.name);
+ open_editor(status->new.name);
break;
case REQ_VIEW_BLAME:
return REQ_NONE;
}
- open_editor(stage_status.status != '?', stage_status.new.name);
+ open_editor(stage_status.new.name);
break;
case REQ_REFRESH: