Skip to content

Commit

Permalink
Attempt to open file as fallback for URIs without scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
ryuukk authored Oct 10, 2024
1 parent d71e11a commit 370b485
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugin/core/sessions.py
Original file line number Diff line number Diff line change
Expand Up @@ -1702,7 +1702,8 @@ def try_open_uri_async(
# There is no pre-existing session-buffer, so we have to go through AbstractPlugin.on_open_uri_async.
if self._plugin:
return self._open_uri_with_plugin_async(self._plugin, uri, r, flags, group)
return None
# Server didn't provide a URI scheme, let's try to open the file, it should be a path anyways
return self._open_file_uri_async(uri, r, flags, group)

def open_uri_async(
self,
Expand Down

0 comments on commit 370b485

Please sign in to comment.