Open diffs in a new window if requested

This commit is contained in:
Andy Williams 2014-11-23 00:18:57 +00:00
parent 854ebe1566
commit 32fd7043ca
1 changed files with 2 additions and 0 deletions

View File

@ -367,6 +367,8 @@ _edi_mainview_win_stat_done(void *data, Eio_File *handler EINA_UNUSED, const Ein
options->type = "text"; // TODO make a code view
else if (!strncasecmp(mime, "image/", 6))
options->type = "image";
else if (!strcasecmp(mime, "text/x-diff") || !strcasecmp(mime, "text/x-patch"))
options->type = "diff";
else
{
_edi_mainview_choose_type(nf, options, _edi_mainview_choose_type_win_cb);