Skip to content
This repository was archived by the owner on Feb 24, 2025. It is now read-only.

Commit

Permalink
fix bug where pasting url into address bar clears its content (#1166)
Browse files Browse the repository at this point in the history
Task/Issue URL:
https://app.asana.com/0/1177771139624306/1204464586950568/f

**Description**:  Maintains search bar content when a URL is pasted
  • Loading branch information
SabrinaTardio authored and mallexxx committed May 4, 2023
1 parent aca926d commit 6ecc32f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DuckDuckGo/NavigationBar/View/AddressBarTextField.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1054,7 +1054,7 @@ final class AddressBarTextEditor: NSTextView {

// Fixes an issue when url-name instead of url is pasted
if let urlString = NSPasteboard.general.string(forType: .URL) {
string = urlString
super.pasteAsPlainText(urlString)
delegate.handlePastedURL()
} else {
super.paste(sender)
Expand Down

0 comments on commit 6ecc32f

Please sign in to comment.