https://bugs.kde.org/show_bug.cgi?id=373213

--- Comment #5 from Igor Kushnir <igor...@gmail.com> ---
Git commit b213f60eaff583ce2d7b4f468f5ed1522ed7017d by Igor Kushnir.
Committed on 15/09/2023 at 13:45.
Pushed by igorkushnir into branch 'master'.

LanguageController: don't assert that filename is nonempty

I have added this assertion in 59270583c2f1f9bbe30cd24c1fa68229651379b3,
because I was unaware that KDevelop supports an empty file name in a
remote URL. The assertion fails when a remote URL that ends with a slash
is opened in Terminal tool view. For example:
    open! 'http://example.org/'

Early-return from MimeTypeCache::languagesForFileName() when its
fileName argument is empty, because this function's definition does not
support that and MimeTypeCache should not return anything for an empty
file name.

M  +7    -3    kdevplatform/shell/languagecontroller.cpp

https://invent.kde.org/kdevelop/kdevelop/-/commit/b213f60eaff583ce2d7b4f468f5ed1522ed7017d

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to