Commit 6d899177 authored by Guillaume Melquiond's avatar Guillaume Melquiond
Browse files

Do not try to guess the language when there is nothing to guess.

parent 98fca983
......@@ -93,6 +93,7 @@ let (why_lang, any_lang) =
exit 1
| Some _ as l -> l in
let any_lang filename =
if filename = "" then why_lang else
match languages_manager#guess_language ~filename () with
| None -> why_lang
| Some _ as l -> l in
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment