1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 11:07:45 +00:00

LaunchServer: Fix regression in opening files with TextEditor

My previous PR had a small error in rebasing and removed a line in
open_file_url. This caused opening text files from the terminal to
always open with an empty TextEditor.

This commit fixes that problem!
This commit is contained in:
bitwitch 2021-06-21 16:44:36 -04:00 committed by Andreas Kling
parent 08510a0c80
commit 7181943d8d

View file

@ -331,6 +331,9 @@ bool Launcher::open_file_url(const URL& url)
filepath = String::formatted("{}:{}", filepath, line.value()); filepath = String::formatted("{}:{}", filepath, line.value());
} }
} }
additional_parameters.append(filepath);
return open_with_user_preferences(m_file_handlers, extension, additional_parameters, default_handler); return open_with_user_preferences(m_file_handlers, extension, additional_parameters, default_handler);
} }
} }