Ladybird: Left-align long url in address bar

Previously when there was a very long url that spanned outside of the
address bar, the text shown would be the one starting from the very end
of the url instead of from the beginning, so you would be seeing the
query parameters for example, instead of the domain.
This commit is contained in:
martinfalisse 2023-02-01 19:51:56 +01:00 committed by Linus Groh
parent feef83359d
commit f0312de7eb
Notes: sideshowbarker 2024-07-17 00:55:14 +09:00

View File

@ -89,6 +89,7 @@ Tab::Tab(BrowserWindow* window, StringView webdriver_content_ipc_path)
}
m_location_edit->setText(url.to_deprecated_string().characters());
m_location_edit->setCursorPosition(0);
// Don't add to history if back or forward is pressed
if (!m_is_history_navigation) {