From 76211757ecce73cba981bdf6704954b25a100a8c Mon Sep 17 00:00:00 2001 From: akbash Date: Tue, 18 Aug 2026 00:11:20 +0300 Subject: fix: reap ctrl-click url openers (#2906) * fix: reap ctrl-click url openers refs #2903 * fix: scope linux opener test import refs #2903 * test: isolate url opener regression refs #2903 --------- Co-authored-by: akbash-bot <300245827+akbash-bot@users.noreply.github.com> --- src/platform/windows.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/platform/windows.rs') diff --git a/src/platform/windows.rs b/src/platform/windows.rs index 4e444877..7aee384e 100644 --- a/src/platform/windows.rs +++ b/src/platform/windows.rs @@ -1889,7 +1889,7 @@ pub fn read_clipboard_text() -> Option { None } -pub fn open_url(url: &str) -> std::io::Result<()> { +pub fn open_url(url: &str) -> std::io::Result> { let operation = wide_null("open"); let url = wide_null(url); let result = unsafe { @@ -1903,7 +1903,7 @@ pub fn open_url(url: &str) -> std::io::Result<()> { ) }; if result as isize > 32 { - Ok(()) + Ok(None) } else { Err(std::io::Error::other(format!( "failed to open URL with ShellExecuteW: code {}", -- cgit v1.2.3