From f0312de7ebadedd4d1e024f4b9d191badda81187 Mon Sep 17 00:00:00 2001 From: martinfalisse Date: Wed, 1 Feb 2023 19:51:56 +0100 Subject: [PATCH] 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. --- Ladybird/Tab.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Ladybird/Tab.cpp b/Ladybird/Tab.cpp index fe3dc13035..b38319bd65 100644 --- a/Ladybird/Tab.cpp +++ b/Ladybird/Tab.cpp @@ -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) {